Treat diagnostics recieved as js/ts init complete

Fixes #68896
This commit is contained in:
Matt Bierner 2019-03-11 11:08:17 -07:00
parent 3a19ca4cc0
commit 05efab0e4e

View file

@ -640,8 +640,8 @@ export default class TypeScriptServiceClient extends Disposable implements IType
case 'syntaxDiag':
case 'semanticDiag':
case 'suggestionDiag':
// This event also roughly signals that the global project has been loaded successfully
this.loadingIndicator.finishedLoadingProject(undefined /* projectName */);
// This event also roughly signals that projects have been loaded successfully (since the TS server is synchronous)
this.loadingIndicator.reset();
const diagnosticEvent = event as Proto.DiagnosticEvent;
if (diagnosticEvent.body && diagnosticEvent.body.diagnostics) {