Skip to content

Commit

Permalink
Treat diagnostics recieved as js/ts init complete
Browse files Browse the repository at this point in the history
Fixes #68896
  • Loading branch information
mjbvz committed Mar 11, 2019
1 parent 3a19ca4 commit 05efab0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 05efab0

Please sign in to comment.