@volar/language-server 2.4.20 → 2.4.22
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.
|
@@ -7,6 +7,7 @@ const vscode_uri_1 = require("vscode-uri");
|
|
|
7
7
|
const protocol_1 = require("../../protocol");
|
|
8
8
|
const reportedCapabilities = new Set();
|
|
9
9
|
function register(server, documents, configurations) {
|
|
10
|
+
configurations.onDidChange(() => requestRefresh(false));
|
|
10
11
|
// Diagnostics support
|
|
11
12
|
let refreshReq = 0;
|
|
12
13
|
let updateDiagnosticsBatchReq = 0;
|
|
@@ -352,8 +353,8 @@ function register(server, documents, configurations) {
|
|
|
352
353
|
}
|
|
353
354
|
if (languageServicePlugins.some(({ capabilities }) => capabilities.semanticTokensProvider)) {
|
|
354
355
|
serverCapabilities.semanticTokensProvider = {
|
|
356
|
+
full: true,
|
|
355
357
|
range: true,
|
|
356
|
-
full: false, // TODO: enable it after testing
|
|
357
358
|
legend: {
|
|
358
359
|
tokenTypes: [...new Set(languageServicePlugins.map(({ capabilities }) => capabilities.semanticTokensProvider?.legend?.tokenTypes ?? []).flat())],
|
|
359
360
|
tokenModifiers: [...new Set(languageServicePlugins.map(({ capabilities }) => capabilities.semanticTokensProvider?.legend?.tokenModifiers ?? []).flat())],
|
|
@@ -621,7 +622,6 @@ function register(server, documents, configurations) {
|
|
|
621
622
|
documents.onDidClose(({ document }) => {
|
|
622
623
|
server.connection.sendDiagnostics({ uri: document.uri, diagnostics: [] });
|
|
623
624
|
});
|
|
624
|
-
configurations.onDidChange(() => requestRefresh(false));
|
|
625
625
|
refreshHandlers.push(async (clearDiagnostics) => {
|
|
626
626
|
if (clearDiagnostics) {
|
|
627
627
|
for (const document of documents.all()) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/language-server",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.22",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"directory": "packages/language-server"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@volar/language-core": "2.4.
|
|
16
|
-
"@volar/language-service": "2.4.
|
|
17
|
-
"@volar/typescript": "2.4.
|
|
15
|
+
"@volar/language-core": "2.4.22",
|
|
16
|
+
"@volar/language-service": "2.4.22",
|
|
17
|
+
"@volar/typescript": "2.4.22",
|
|
18
18
|
"path-browserify": "^1.0.1",
|
|
19
19
|
"request-light": "^0.7.0",
|
|
20
20
|
"vscode-languageserver": "^9.0.1",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/path-browserify": "latest"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "5e2c8f4ba3e71e322101a94139943edf41e054d1"
|
|
29
29
|
}
|