@volar/monaco 1.8.2 → 1.9.0

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.
Files changed (2) hide show
  1. package/out/worker.js +3 -3
  2. package/package.json +3 -3
package/out/worker.js CHANGED
@@ -7,6 +7,7 @@ function createServiceEnvironment() {
7
7
  return {
8
8
  uriToFileName: uri => vscode_uri_1.URI.parse(uri).fsPath.replace(/\\/g, '/'),
9
9
  fileNameToUri: fileName => vscode_uri_1.URI.file(fileName).toString(),
10
+ workspaceUri: vscode_uri_1.URI.file('/'),
10
11
  rootUri: vscode_uri_1.URI.file('/'),
11
12
  console,
12
13
  };
@@ -17,6 +18,8 @@ function createLanguageHost(getMirrorModels, env, rootPath, compilerOptions = {}
17
18
  const modelSnapshot = new WeakMap();
18
19
  const modelVersions = new Map();
19
20
  const host = {
21
+ workspacePath: rootPath,
22
+ rootPath: rootPath,
20
23
  getProjectVersion() {
21
24
  const models = getMirrorModels();
22
25
  if (modelVersions.size === getMirrorModels().length) {
@@ -55,9 +58,6 @@ function createLanguageHost(getMirrorModels, env, rootPath, compilerOptions = {}
55
58
  getCompilationSettings() {
56
59
  return compilerOptions;
57
60
  },
58
- getCurrentDirectory() {
59
- return rootPath;
60
- },
61
61
  };
62
62
  return host;
63
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/monaco",
3
- "version": "1.8.2",
3
+ "version": "1.9.0",
4
4
  "main": "out/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -15,12 +15,12 @@
15
15
  "directory": "packages/monaco"
16
16
  },
17
17
  "dependencies": {
18
- "@volar/language-service": "1.8.2",
18
+ "@volar/language-service": "1.9.0",
19
19
  "vscode-uri": "^3.0.7"
20
20
  },
21
21
  "devDependencies": {
22
22
  "monaco-editor-core": "latest",
23
23
  "vscode-languageserver-protocol": "^3.17.3"
24
24
  },
25
- "gitHead": "b552c1f827294da5d36cbe4e7c1f7f2729b2b82e"
25
+ "gitHead": "37453f868329df9c666e6ee44919a55b36484b93"
26
26
  }