diff --git a/extensions/typescript-language-features/src/typescriptServiceClient.ts b/extensions/typescript-language-features/src/typescriptServiceClient.ts index 73745af9dba..a70d25330e2 100644 --- a/extensions/typescript-language-features/src/typescriptServiceClient.ts +++ b/extensions/typescript-language-features/src/typescriptServiceClient.ts @@ -601,6 +601,12 @@ export default class TypeScriptServiceClient extends Disposable implements IType case 'syntaxDiag': case 'semanticDiag': case 'suggestionDiag': + // This event also roughly signals that project has been loaded successfully + if (this._tsServerLoading) { + this._tsServerLoading.resolve(); + this._tsServerLoading = undefined; + } + const diagnosticEvent: Proto.DiagnosticEvent = event; if (diagnosticEvent.body && diagnosticEvent.body.diagnostics) { this._onDiagnosticsReceived.fire({ @@ -632,12 +638,6 @@ export default class TypeScriptServiceClient extends Disposable implements IType const resources = body.openFiles.map(vscode.Uri.file); this.bufferSyncSupport.getErr(resources); } - - // This event also roughly signals that project has been loaded successfully - if (this._tsServerLoading) { - this._tsServerLoading.resolve(); - this._tsServerLoading = undefined; - } break; case 'beginInstallTypes':