@volar/kit 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.
- package/out/createFormatter.js +3 -1
- package/out/createLinter.js +2 -1
- package/out/createProject.js +2 -3
- package/package.json +3 -3
package/out/createFormatter.js
CHANGED
|
@@ -13,6 +13,7 @@ function createFormatter(config, compilerOptions = utils_1.defaultCompilerOption
|
|
|
13
13
|
let fakeScriptSnapshot = ts.ScriptSnapshot.fromString('');
|
|
14
14
|
let fakeScriptLanguageId;
|
|
15
15
|
const service = (0, language_service_1.createLanguageService)({ typescript: ts }, {
|
|
16
|
+
workspaceUri: vscode_uri_1.URI.file('/'),
|
|
16
17
|
rootUri: vscode_uri_1.URI.file('/'),
|
|
17
18
|
uriToFileName: uri => {
|
|
18
19
|
if (uri.startsWith(dummyScriptUri))
|
|
@@ -65,7 +66,8 @@ function createFormatter(config, compilerOptions = utils_1.defaultCompilerOption
|
|
|
65
66
|
function createHost() {
|
|
66
67
|
let projectVersion = 0;
|
|
67
68
|
const host = {
|
|
68
|
-
|
|
69
|
+
workspacePath: '/',
|
|
70
|
+
rootPath: '/',
|
|
69
71
|
getCompilationSettings: () => compilerOptions,
|
|
70
72
|
getProjectVersion: () => (projectVersion++).toString(),
|
|
71
73
|
getScriptFileNames: () => fakeScriptSnapshot ? [fakeScriptFileName] : [],
|
package/out/createLinter.js
CHANGED
|
@@ -11,7 +11,8 @@ function createLinter(config, host) {
|
|
|
11
11
|
const service = (0, language_service_1.createLanguageService)({ typescript: ts }, {
|
|
12
12
|
uriToFileName: utils_1.uriToFileName,
|
|
13
13
|
fileNameToUri: utils_1.fileNameToUri,
|
|
14
|
-
|
|
14
|
+
workspaceUri: vscode_uri_1.URI.parse((0, utils_1.fileNameToUri)(host.workspacePath)),
|
|
15
|
+
rootUri: vscode_uri_1.URI.parse((0, utils_1.fileNameToUri)(host.rootPath)),
|
|
15
16
|
getConfiguration: section => (0, utils_1.getConfiguration)(settings, section),
|
|
16
17
|
fs: utils_1.fs,
|
|
17
18
|
console,
|
package/out/createProject.js
CHANGED
|
@@ -23,9 +23,8 @@ exports.createProject = createProject;
|
|
|
23
23
|
function createProjectBase(rootPath, createParsedCommandLine) {
|
|
24
24
|
const ts = require('typescript');
|
|
25
25
|
const languageHost = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
},
|
|
26
|
+
workspacePath: rootPath,
|
|
27
|
+
rootPath: rootPath,
|
|
29
28
|
getCompilationSettings: () => {
|
|
30
29
|
return parsedCommandLine.options;
|
|
31
30
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"directory": "packages/kit"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@volar/language-service": "1.
|
|
16
|
+
"@volar/language-service": "1.9.0",
|
|
17
17
|
"typesafe-path": "^0.2.2",
|
|
18
18
|
"vscode-languageserver-textdocument": "^1.0.8",
|
|
19
19
|
"vscode-uri": "^3.0.7"
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"typescript": "*"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "37453f868329df9c666e6ee44919a55b36484b93"
|
|
25
25
|
}
|