We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79c14b1 commit c314a09Copy full SHA for c314a09
server/src/services/vls.ts
@@ -176,10 +176,11 @@ export class VLS {
176
return (this.languageModes.getMode('vue-html') as VueHTMLMode).queryVirtualFileInfo(fileName, currFileText);
177
});
178
179
- this.lspConnection.onRequest('$/getDiagnostics', params => {
+ this.lspConnection.onRequest('$/getDiagnostics', async params => {
180
const doc = this.documentService.getDocument(params.uri);
181
if (doc) {
182
- return this.doValidate(doc).then(result => result ?? []);
+ const diagnostics = await this.doValidate(doc);
183
+ return diagnostics ?? [];
184
}
185
return [];
186
0 commit comments