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 lsp restart #10614

Merged
merged 1 commit into from
Apr 28, 2024
Merged

fix lsp restart #10614

merged 1 commit into from
Apr 28, 2024

Conversation

pascalkuthe
Copy link
Member

@pascalkuthe pascalkuthe commented Apr 27, 2024

closes #10610

this was a minor regression from #10539

the main problem was a mix-up where the new client was removed from the registry instead of the old one (accidentally used cliend.id() instead of old_cient.id()) but I also noticed that we don't actually stop an old lsp if the new one fails to start and similarly don't restart a server if it failed to start/was stopped in the past which doesn't seem correct, so I fixed that too.

@pascalkuthe pascalkuthe added C-bug Category: This is a bug E-easy Call for participation: Experience needed to fix: Easy / not much A-language-server Area: Language server client S-waiting-on-review Status: Awaiting review from a maintainer. labels Apr 27, 2024
Copy link
Member

@dead10ck dead10ck left a comment

Choose a reason for hiding this comment

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

Yeah this makes sense to me. Thanks!

@archseer archseer merged commit a1d7997 into master Apr 28, 2024
6 checks passed
@archseer archseer deleted the fix_lsp_restart branch April 28, 2024 03:11
Vulpesx pushed a commit to Vulpesx/helix that referenced this pull request Jun 7, 2024
Chirikumbrah pushed a commit to Chirikumbrah/helix that referenced this pull request Jun 15, 2024
smortime pushed a commit to smortime/helix that referenced this pull request Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-server Area: Language server client C-bug Category: This is a bug E-easy Call for participation: Experience needed to fix: Easy / not much S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lsp-restart cannot restart lsp correctly.
3 participants