Skip to content

Commit a6151f7

Browse files
committed
Show compiler warnings and errors on file open
1 parent 412463c commit a6151f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,7 @@ async function onMessage(msg: p.Message) {
10881088
} else if (msg.method === DidOpenTextDocumentNotification.method) {
10891089
let params = msg.params as p.DidOpenTextDocumentParams;
10901090
await openedFile(params.textDocument.uri, params.textDocument.text);
1091+
await sendUpdatedDiagnostics();
10911092
await updateDiagnosticSyntax(params.textDocument.uri, params.textDocument.text);
10921093
} else if (msg.method === DidChangeTextDocumentNotification.method) {
10931094
let params = msg.params as p.DidChangeTextDocumentParams;

0 commit comments

Comments
 (0)