@volar/language-server
Advanced tools
Comparing version 2.4.0-alpha.12 to 2.4.0-alpha.13
@@ -299,3 +299,3 @@ "use strict"; | ||
return await worker(uri, token, async (languageService) => { | ||
return await languageService?.getSemanticTokens(uri, undefined, server.initializeResult.capabilities.semanticTokensProvider.legend, token, tokens => resultProgress?.report(tokens)); | ||
return await languageService?.getSemanticTokens(uri, undefined, server.initializeResult.capabilities.semanticTokensProvider.legend, tokens => resultProgress?.report(tokens), token); | ||
}) ?? { data: [] }; | ||
@@ -308,3 +308,3 @@ }); | ||
return await worker(uri, token, async (languageService) => { | ||
return await languageService?.getSemanticTokens(uri, params.range, server.initializeResult.capabilities.semanticTokensProvider.legend, token, tokens => resultProgress?.report(tokens)); | ||
return await languageService?.getSemanticTokens(uri, params.range, server.initializeResult.capabilities.semanticTokensProvider.legend, tokens => resultProgress?.report(tokens), token); | ||
}) ?? { data: [] }; | ||
@@ -317,3 +317,3 @@ }); | ||
const result = await worker(uri, token, languageService => { | ||
return languageService.getDiagnostics(uri, token, errors => { | ||
return languageService.getDiagnostics(uri, errors => { | ||
// resultProgressReporter is undefined in vscode | ||
@@ -328,3 +328,3 @@ resultProgressReporter?.report({ | ||
}); | ||
}); | ||
}, token); | ||
}); | ||
@@ -362,3 +362,3 @@ return { | ||
for (const languageService of await server.project.getExistingLanguageServices()) { | ||
if (languageService.executeCommand && languageService.getCommands().includes(params.command)) { | ||
if (languageService.executeCommand && languageService.commands.includes(params.command)) { | ||
try { | ||
@@ -365,0 +365,0 @@ return await languageService.executeCommand(params.command, params.arguments ?? [], token); |
@@ -472,5 +472,5 @@ "use strict"; | ||
const languageService = await project.getLanguageService(uri); | ||
const errors = await languageService.getDiagnostics(uri, cancel, result => { | ||
const errors = await languageService.getDiagnostics(uri, result => { | ||
connection.sendDiagnostics({ uri: uriStr, diagnostics: result, version }); | ||
}); | ||
}, cancel); | ||
connection.sendDiagnostics({ uri: uriStr, diagnostics: errors, version }); | ||
@@ -477,0 +477,0 @@ } |
{ | ||
"name": "@volar/language-server", | ||
"version": "2.4.0-alpha.12", | ||
"version": "2.4.0-alpha.13", | ||
"license": "MIT", | ||
@@ -15,6 +15,6 @@ "files": [ | ||
"dependencies": { | ||
"@volar/language-core": "2.4.0-alpha.12", | ||
"@volar/language-service": "2.4.0-alpha.12", | ||
"@volar/snapshot-document": "2.4.0-alpha.12", | ||
"@volar/typescript": "2.4.0-alpha.12", | ||
"@volar/language-core": "2.4.0-alpha.13", | ||
"@volar/language-service": "2.4.0-alpha.13", | ||
"@volar/snapshot-document": "2.4.0-alpha.13", | ||
"@volar/typescript": "2.4.0-alpha.13", | ||
"path-browserify": "^1.0.1", | ||
@@ -30,3 +30,3 @@ "request-light": "^0.7.0", | ||
}, | ||
"gitHead": "9418f0c81cef5ca13b21bf43a49bef67c6cb2993" | ||
"gitHead": "5f6d5d8ec51a5dda702d071c283e9133254cae97" | ||
} |
115983
+ Added@volar/language-core@2.4.0-alpha.13(transitive)
+ Added@volar/language-service@2.4.0-alpha.13(transitive)
+ Added@volar/snapshot-document@2.4.0-alpha.13(transitive)
+ Added@volar/source-map@2.4.0-alpha.13(transitive)
+ Added@volar/typescript@2.4.0-alpha.13(transitive)
- Removed@volar/language-core@2.4.0-alpha.12(transitive)
- Removed@volar/language-service@2.4.0-alpha.12(transitive)
- Removed@volar/snapshot-document@2.4.0-alpha.12(transitive)
- Removed@volar/source-map@2.4.0-alpha.12(transitive)
- Removed@volar/typescript@2.4.0-alpha.12(transitive)