@tombi-toml/wasm-lsp 1.5.8 → 1.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "ya7010 <ya7010@outlook.com>"
6
6
  ],
7
7
  "description": "Tombi formatter, linter, and language server for WebAssembly",
8
- "version": "1.5.8",
8
+ "version": "1.5.10",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",
@@ -56,7 +56,7 @@ export function remove_workspace_file(uri: string): void;
56
56
  export function serve(config: ServerConfig): Promise<void>;
57
57
 
58
58
  /**
59
- * Replace the virtual workspace entries visible to the WASM language server.
59
+ * Replace the virtual workspace entries visible to `format`/`lint`/`serve`.
60
60
  */
61
61
  export function set_workspace_entries(entries: any): void;
62
62
 
@@ -66,7 +66,7 @@ export function set_workspace_entries(entries: any): void;
66
66
  export function set_workspace_file(uri: string, text: string): void;
67
67
 
68
68
  /**
69
- * Replace the virtual workspace files visible to the WASM language server.
69
+ * Replace the virtual workspace files visible to `format`/`lint`/`serve`.
70
70
  */
71
71
  export function set_workspace_files(files: any): void;
72
72
 
@@ -97,9 +97,9 @@ export interface InitOutput {
97
97
  readonly set_workspace_file: (a: number, b: number, c: number, d: number, e: number) => void;
98
98
  readonly set_workspace_files: (a: number, b: number) => void;
99
99
  readonly start: () => void;
100
- readonly __wasm_bindgen_func_elem_17443: (a: number, b: number, c: number, d: number) => void;
101
- readonly __wasm_bindgen_func_elem_17445: (a: number, b: number, c: number, d: number) => void;
102
- readonly __wasm_bindgen_func_elem_234: (a: number, b: number, c: number, d: number) => void;
100
+ readonly __wasm_bindgen_func_elem_17464: (a: number, b: number, c: number, d: number) => void;
101
+ readonly __wasm_bindgen_func_elem_17466: (a: number, b: number, c: number, d: number) => void;
102
+ readonly __wasm_bindgen_func_elem_241: (a: number, b: number, c: number, d: number) => void;
103
103
  readonly __wbindgen_export: (a: number, b: number) => number;
104
104
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
105
105
  readonly __wbindgen_export3: (a: number) => void;
@@ -171,7 +171,7 @@ export function serve(config) {
171
171
  }
172
172
 
173
173
  /**
174
- * Replace the virtual workspace entries visible to the WASM language server.
174
+ * Replace the virtual workspace entries visible to `format`/`lint`/`serve`.
175
175
  * @param {any} entries
176
176
  */
177
177
  export function set_workspace_entries(entries) {
@@ -212,7 +212,7 @@ export function set_workspace_file(uri, text) {
212
212
  }
213
213
 
214
214
  /**
215
- * Replace the virtual workspace files visible to the WASM language server.
215
+ * Replace the virtual workspace files visible to `format`/`lint`/`serve`.
216
216
  * @param {any} files
217
217
  */
218
218
  export function set_workspace_files(files) {
@@ -502,7 +502,7 @@ function __wbg_get_imports() {
502
502
  const a = state0.a;
503
503
  state0.a = 0;
504
504
  try {
505
- return __wasm_bindgen_func_elem_17445(a, state0.b, arg0, arg1);
505
+ return __wasm_bindgen_func_elem_17466(a, state0.b, arg0, arg1);
506
506
  } finally {
507
507
  state0.a = a;
508
508
  }
@@ -647,13 +647,13 @@ function __wbg_get_imports() {
647
647
  return addHeapObject(ret);
648
648
  },
649
649
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
650
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5541, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
651
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_17443);
650
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5548, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
651
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_17464);
652
652
  return addHeapObject(ret);
653
653
  },
654
654
  __wbindgen_generic_0000000000000002: function(arg0, arg1) {
655
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IteratorResult<any>")], shim_idx: 47, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
656
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_234);
655
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IteratorResult<any>")], shim_idx: 59, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
656
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_241);
657
657
  return addHeapObject(ret);
658
658
  },
659
659
  __wbindgen_generic_0000000000000003: function(arg0) {
@@ -680,14 +680,14 @@ function __wbg_get_imports() {
680
680
  };
681
681
  }
682
682
 
683
- function __wasm_bindgen_func_elem_17445(arg0, arg1, arg2, arg3) {
684
- wasm.__wasm_bindgen_func_elem_17445(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
683
+ function __wasm_bindgen_func_elem_17466(arg0, arg1, arg2, arg3) {
684
+ wasm.__wasm_bindgen_func_elem_17466(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
685
685
  }
686
686
 
687
- function __wasm_bindgen_func_elem_17443(arg0, arg1, arg2) {
687
+ function __wasm_bindgen_func_elem_17464(arg0, arg1, arg2) {
688
688
  try {
689
689
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
690
- wasm.__wasm_bindgen_func_elem_17443(retptr, arg0, arg1, addHeapObject(arg2));
690
+ wasm.__wasm_bindgen_func_elem_17464(retptr, arg0, arg1, addHeapObject(arg2));
691
691
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
692
692
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
693
693
  if (r1) {
@@ -698,10 +698,10 @@ function __wasm_bindgen_func_elem_17443(arg0, arg1, arg2) {
698
698
  }
699
699
  }
700
700
 
701
- function __wasm_bindgen_func_elem_234(arg0, arg1, arg2) {
701
+ function __wasm_bindgen_func_elem_241(arg0, arg1, arg2) {
702
702
  try {
703
703
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
704
- wasm.__wasm_bindgen_func_elem_234(retptr, arg0, arg1, addHeapObject(arg2));
704
+ wasm.__wasm_bindgen_func_elem_241(retptr, arg0, arg1, addHeapObject(arg2));
705
705
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
706
706
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
707
707
  if (r1) {
Binary file
@@ -22,9 +22,9 @@ export const set_workspace_entries: (a: number, b: number) => void;
22
22
  export const set_workspace_file: (a: number, b: number, c: number, d: number, e: number) => void;
23
23
  export const set_workspace_files: (a: number, b: number) => void;
24
24
  export const start: () => void;
25
- export const __wasm_bindgen_func_elem_17443: (a: number, b: number, c: number, d: number) => void;
26
- export const __wasm_bindgen_func_elem_17445: (a: number, b: number, c: number, d: number) => void;
27
- export const __wasm_bindgen_func_elem_234: (a: number, b: number, c: number, d: number) => void;
25
+ export const __wasm_bindgen_func_elem_17464: (a: number, b: number, c: number, d: number) => void;
26
+ export const __wasm_bindgen_func_elem_17466: (a: number, b: number, c: number, d: number) => void;
27
+ export const __wasm_bindgen_func_elem_241: (a: number, b: number, c: number, d: number) => void;
28
28
  export const __wbindgen_export: (a: number, b: number) => number;
29
29
  export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
30
30
  export const __wbindgen_export3: (a: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tombi-toml/wasm-lsp",
3
- "version": "1.5.8",
3
+ "version": "1.5.10",
4
4
  "description": "Tombi Language Server for WebAssembly",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  "scripts": {
22
22
  "build": "rm -rf dist && cd ../../../rust/tombi-wasm && wasm-pack build --locked --target web --out-dir ../../typescript/@tombi-toml/wasm-lsp/dist --out-name tombi_lsp_wasm -- --no-default-features --features lsp && rm ../../typescript/@tombi-toml/wasm-lsp/dist/.gitignore && cp src/lsp-worker.js ../../typescript/@tombi-toml/wasm-lsp/dist/worker.js",
23
23
  "build:docs": "rm -f ../../../docs/public/wasm/tombi_lsp_wasm.d.ts ../../../docs/public/wasm/tombi_lsp_wasm.js ../../../docs/public/wasm/tombi_lsp_wasm_bg.wasm ../../../docs/public/wasm/tombi_lsp_wasm_bg.wasm.d.ts && cd ../../../rust/tombi-wasm && wasm-pack build --locked --target web --out-dir ../../docs/public/wasm --out-name tombi_lsp_wasm -- --no-default-features --features lsp && cp src/lsp-worker.js ../../docs/public/wasm/worker.js",
24
- "test": "pnpm run build && node ../../../rust/tombi-wasm/tests/lsp-smoke.mjs",
24
+ "test": "node ../../../rust/tombi-wasm/tests/lsp-smoke.mjs",
25
25
  "clean": "rm -rf dist"
26
26
  },
27
27
  "devDependencies": {