@volar/monaco 2.0.0 → 2.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 +4 -4
- package/worker.d.ts +2 -2
- package/worker.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/monaco",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"directory": "packages/monaco"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@volar/language-service": "2.0.
|
|
17
|
-
"@volar/typescript": "2.0.
|
|
16
|
+
"@volar/language-service": "2.0.1",
|
|
17
|
+
"@volar/typescript": "2.0.1",
|
|
18
18
|
"monaco-languageserver-types": "^0.3.2",
|
|
19
19
|
"monaco-types": "^0.1.0",
|
|
20
20
|
"vscode-uri": "^3.0.8"
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"monaco-editor-core": "latest"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "b1fbf6eed522624ccccfb17a8999edfbc1d8d9bb"
|
|
26
26
|
}
|
package/worker.d.ts
CHANGED
|
@@ -66,8 +66,8 @@ export declare function createSimpleWorkerService<T = {}>({ env, workerContext,
|
|
|
66
66
|
dispose: () => void;
|
|
67
67
|
context: import("@volar/language-service").ServiceContext;
|
|
68
68
|
} & T;
|
|
69
|
-
export declare function createTypeScriptWorkerService<T = {}>({
|
|
70
|
-
|
|
69
|
+
export declare function createTypeScriptWorkerService<T = {}>({ typescript: ts, compilerOptions, env, workerContext, languagePlugins, servicePlugins, extraApis }: {
|
|
70
|
+
typescript: typeof import('typescript');
|
|
71
71
|
compilerOptions: ts.CompilerOptions;
|
|
72
72
|
env: ServiceEnvironment;
|
|
73
73
|
workerContext: monaco.worker.IWorkerContext<any>;
|
package/worker.js
CHANGED
|
@@ -26,7 +26,7 @@ export function createSimpleWorkerService({ env, workerContext, languagePlugins
|
|
|
26
26
|
});
|
|
27
27
|
return createWorkerService({ files }, servicePlugins, env, extraApis);
|
|
28
28
|
}
|
|
29
|
-
export function createTypeScriptWorkerService({
|
|
29
|
+
export function createTypeScriptWorkerService({ typescript: ts, compilerOptions, env, workerContext, languagePlugins = [], servicePlugins = [], extraApis = {} }) {
|
|
30
30
|
let projectVersion = 0;
|
|
31
31
|
const modelSnapshot = new WeakMap();
|
|
32
32
|
const modelVersions = new Map();
|