-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[#2297] [WIP] Ensure that LS progress initialize is not duplicated. #2606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Should help with the 'infinite analyzing' issues we are seeing - May still have some work to do catching 'stateChange' messages
// 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 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MikhailArkhipov is there something here I should do to improve things further?
I required this fix in my prior PR to get the behaviour I needed unfortunately.
I think it's best to close this PR unless I need to capture the 'stopped' state.
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no change apart from adding a comment!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't see any changes in here
No need for this PR. |
Fixes #2297
stateChange
message and respond tostopped
state indicatingthe LS has terminated.Any new/changed dependencies inpackage.json
are pinned (e.g."1.2.3"
, not"^1.2.3"
for the specified version)package-lock.json
has been regenerated by runningnpm install
(if dependencies have changed)