File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -836,7 +836,7 @@ function format(msg: p.RequestMessage): Array<p.Message> {
836
836
}
837
837
}
838
838
839
- let updateDiagnosticSyntax = ( fileUri : string , fileContent : string ) => {
839
+ let updateDiagnosticSyntax = async ( fileUri : string , fileContent : string ) => {
840
840
if ( config . extensionConfiguration . incrementalTypechecking ?. enable ) {
841
841
// The incremental typechecking already sends syntax diagnostics.
842
842
return ;
@@ -1056,7 +1056,7 @@ async function onMessage(msg: p.Message) {
1056
1056
} else if ( msg . method === DidOpenTextDocumentNotification . method ) {
1057
1057
let params = msg . params as p . DidOpenTextDocumentParams ;
1058
1058
await openedFile ( params . textDocument . uri , params . textDocument . text ) ;
1059
- updateDiagnosticSyntax ( params . textDocument . uri , params . textDocument . text ) ;
1059
+ await updateDiagnosticSyntax ( params . textDocument . uri , params . textDocument . text ) ;
1060
1060
} else if ( msg . method === DidChangeTextDocumentNotification . method ) {
1061
1061
let params = msg . params as p . DidChangeTextDocumentParams ;
1062
1062
let extName = path . extname ( params . textDocument . uri ) ;
@@ -1070,7 +1070,7 @@ async function onMessage(msg: p.Message) {
1070
1070
params . textDocument . uri ,
1071
1071
changes [ changes . length - 1 ] . text
1072
1072
) ;
1073
- updateDiagnosticSyntax (
1073
+ await updateDiagnosticSyntax (
1074
1074
params . textDocument . uri ,
1075
1075
changes [ changes . length - 1 ] . text
1076
1076
) ;
You can’t perform that action at this time.
0 commit comments