diff --git a/src/client/activation/progress.ts b/src/client/activation/progress.ts index cbef24abc39c..523e8800b3fe 100644 --- a/src/client/activation/progress.ts +++ b/src/client/activation/progress.ts @@ -29,7 +29,7 @@ export class ProgressReporting { }); this.languageClient.onNotification('python/beginProgress', async _ => { - if (this.progressDeferred) { + if (this.progressDeferred) { // if we restarted, no worries as reporting will still funnel to the same place. return; } @@ -64,6 +64,11 @@ export class ProgressReporting { this.completeAnalysisTracking(true); } }); + + // tslint:disable-next-line:no-suspicious-comment + // TODO: (from https://github.com/Microsoft/vscode-python/pull/2597#discussion_r217892043) + // For #2297 (while most of the problem is not here, restart is rare) you need + // to track 'stateChange' on the language client. When it gets to 'stopped' LS has terminated } private completeAnalysisTracking(success: boolean): void {