Skip to content

Commit c314a09

Browse files
committed
async
1 parent 79c14b1 commit c314a09

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/src/services/vls.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,11 @@ export class VLS {
176176
return (this.languageModes.getMode('vue-html') as VueHTMLMode).queryVirtualFileInfo(fileName, currFileText);
177177
});
178178

179-
this.lspConnection.onRequest('$/getDiagnostics', params => {
179+
this.lspConnection.onRequest('$/getDiagnostics', async params => {
180180
const doc = this.documentService.getDocument(params.uri);
181181
if (doc) {
182-
return this.doValidate(doc).then(result => result ?? []);
182+
const diagnostics = await this.doValidate(doc);
183+
return diagnostics ?? [];
183184
}
184185
return [];
185186
});

0 commit comments

Comments
 (0)