@codingame/monaco-vscode-treesitter-service-override 20.0.0 → 20.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-treesitter-service-override",
3
- "version": "20.0.0",
3
+ "version": "20.0.1",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - treesitter service-override",
6
6
  "keywords": [],
@@ -15,9 +15,9 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-9a934394-0cf8-512d-939b-77e71f69cebb-common": "20.0.0",
19
- "@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "20.0.0",
20
- "@codingame/monaco-vscode-api": "20.0.0"
18
+ "@codingame/monaco-vscode-9d0168a3-519b-57f3-9bcc-89efc41f951a-common": "20.0.1",
19
+ "@codingame/monaco-vscode-api": "20.0.1",
20
+ "@vscode/tree-sitter-wasm": "0.1.4"
21
21
  },
22
22
  "main": "index.js",
23
23
  "module": "index.js",
@@ -1,7 +1,6 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
3
  import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
4
- import { importAMDNodeModule } from '@codingame/monaco-vscode-9a934394-0cf8-512d-939b-77e71f69cebb-common/vscode/vs/amdX';
5
4
  import { Lazy } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lazy';
6
5
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
7
6
  import { toFileOperationResult, FileOperationResult } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
@@ -27,7 +26,7 @@ let TreeSitterLibraryService = class TreeSitterLibraryService extends Disposable
27
26
  this._environmentService = _environmentService;
28
27
  this.isTest = false;
29
28
  this._treeSitterImport = ( new Lazy(async () => {
30
- const TreeSitter = await importAMDNodeModule('@vscode/tree-sitter-wasm', 'wasm/tree-sitter.js');
29
+ const TreeSitter = await import('@vscode/tree-sitter-wasm').then(module => ({ Parser: module.default ?? module }));
31
30
  const isTest = this.isTest;
32
31
  await TreeSitter.Parser.init({
33
32
  locateFile(_file, _folder) {