File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -836,7 +836,7 @@ function format(msg: p.RequestMessage): Array<p.Message> {
836836 }
837837}
838838
839- let updateDiagnosticSyntax = ( fileUri : string , fileContent : string ) => {
839+ let updateDiagnosticSyntax = async ( fileUri : string , fileContent : string ) => {
840840 if ( config . extensionConfiguration . incrementalTypechecking ?. enable ) {
841841 // The incremental typechecking already sends syntax diagnostics.
842842 return ;
@@ -1056,7 +1056,7 @@ async function onMessage(msg: p.Message) {
10561056 } else if ( msg . method === DidOpenTextDocumentNotification . method ) {
10571057 let params = msg . params as p . DidOpenTextDocumentParams ;
10581058 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 ) ;
10601060 } else if ( msg . method === DidChangeTextDocumentNotification . method ) {
10611061 let params = msg . params as p . DidChangeTextDocumentParams ;
10621062 let extName = path . extname ( params . textDocument . uri ) ;
@@ -1070,7 +1070,7 @@ async function onMessage(msg: p.Message) {
10701070 params . textDocument . uri ,
10711071 changes [ changes . length - 1 ] . text
10721072 ) ;
1073- updateDiagnosticSyntax (
1073+ await updateDiagnosticSyntax (
10741074 params . textDocument . uri ,
10751075 changes [ changes . length - 1 ] . text
10761076 ) ;
You can’t perform that action at this time.
0 commit comments