@vue/language-server 2.2.0 → 2.2.4
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/bin/vue-language-server.js +0 -0
- package/lib/initialize.js +3 -3
- package/node.js +1 -1
- package/package.json +5 -5
|
File without changes
|
package/lib/initialize.js
CHANGED
|
@@ -24,7 +24,7 @@ function initialize(server, params, ts, tsLocalized) {
|
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
26
|
compilerOptions = ts.getDefaultCompilerOptions();
|
|
27
|
-
vueCompilerOptions = (0, language_core_1.
|
|
27
|
+
vueCompilerOptions = (0, language_core_1.getDefaultCompilerOptions)();
|
|
28
28
|
}
|
|
29
29
|
vueCompilerOptions.__test = params.initializationOptions.typescript.disableAutoImportCache;
|
|
30
30
|
updateFileWatcher(vueCompilerOptions);
|
|
@@ -38,8 +38,8 @@ function initialize(server, params, ts, tsLocalized) {
|
|
|
38
38
|
const directoryExists = project.typescript.languageServiceHost.directoryExists?.bind(project.typescript.languageServiceHost);
|
|
39
39
|
const fileExists = project.typescript.languageServiceHost.fileExists.bind(project.typescript.languageServiceHost);
|
|
40
40
|
const getScriptSnapshot = project.typescript.languageServiceHost.getScriptSnapshot.bind(project.typescript.languageServiceHost);
|
|
41
|
-
const globalTypesName =
|
|
42
|
-
const globalTypesContents = `// @ts-nocheck\nexport {};\n` + (0, language_core_1.generateGlobalTypes)(vueCompilerOptions
|
|
41
|
+
const globalTypesName = (0, language_core_1.getGlobalTypesFileName)(vueCompilerOptions);
|
|
42
|
+
const globalTypesContents = `// @ts-nocheck\nexport {};\n` + (0, language_core_1.generateGlobalTypes)(vueCompilerOptions);
|
|
43
43
|
const globalTypesSnapshot = {
|
|
44
44
|
getText: (start, end) => globalTypesContents.slice(start, end),
|
|
45
45
|
getLength: () => globalTypesContents.length,
|
package/node.js
CHANGED
|
@@ -18,7 +18,7 @@ connection.onInitialize(params => {
|
|
|
18
18
|
const commandLine = configFileName
|
|
19
19
|
? (0, language_core_1.createParsedCommandLine)(ts, ts.sys, configFileName)
|
|
20
20
|
: {
|
|
21
|
-
vueOptions: (0, language_core_1.
|
|
21
|
+
vueOptions: (0, language_core_1.getDefaultCompilerOptions)(),
|
|
22
22
|
options: ts.getDefaultCompilerOptions(),
|
|
23
23
|
};
|
|
24
24
|
commandLine.vueOptions.__test = params.initializationOptions.typescript.disableAutoImportCache;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/language-server",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"@volar/language-core": "~2.4.11",
|
|
20
20
|
"@volar/language-server": "~2.4.11",
|
|
21
21
|
"@volar/test-utils": "~2.4.11",
|
|
22
|
-
"@vue/language-core": "2.2.
|
|
23
|
-
"@vue/language-service": "2.2.
|
|
24
|
-
"@vue/typescript-plugin": "2.2.
|
|
22
|
+
"@vue/language-core": "2.2.4",
|
|
23
|
+
"@vue/language-service": "2.2.4",
|
|
24
|
+
"@vue/typescript-plugin": "2.2.4",
|
|
25
25
|
"vscode-languageserver-protocol": "^3.17.5",
|
|
26
26
|
"vscode-uri": "^3.0.8"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "c28986596935cb43979c9d437c25f292bdb36cef"
|
|
29
29
|
}
|