Skip to content
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

fix crash loop on disabling helper package of a running server #1906

Merged
merged 3 commits into from
Dec 4, 2021

Conversation

rchl
Copy link
Member

@rchl rchl commented Nov 27, 2021

Don't pass the config name since that results in the listener (WindowConfigManager.update) not clearing the registered configs. On removing a config we should not pass a name.

Fixes #1905

Don't pass the config name since that results in the listener
(WindowConfigManager.update) recreating an empty config. On removing
a config we should not pass a name.

Fixes #1905
Copy link
Member

@predragnikolic predragnikolic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this fixes it.

@rchl
Copy link
Member Author

rchl commented Nov 27, 2021

Though there is something messy about the current code... This issue shouldn't really happen even without this fix. Will have a look again

@rchl
Copy link
Member Author

rchl commented Nov 27, 2021

Yeah, I guess WindowConfigManager.update has to do some guesses about whether it should do self.all.clear() or not since it doesn't know what has actually happened (whether config was added, removed or updated). I guess it is fine as is.

@rchl rchl mentioned this pull request Dec 4, 2021
@rchl rchl merged commit 02d0f32 into main Dec 4, 2021
@rchl rchl deleted the fix/disable-loop branch December 4, 2021 16:22
rchl added a commit that referenced this pull request Dec 4, 2021
* origin/main:
  fix crash loop on disabling helper package of a running server (#1906)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When disabling a LSP-* plugin, I the error popup shows up infinitely
2 participants