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

LSP: Gracefully handle 'workspace/configuration' from a stopped server #6693

Merged

Conversation

koskeller
Copy link
Contributor

Fixes #6687

Quick-fix is to propagate error replacing .get_by_id(server_id).unwrap() with .get_by_id(server_id)?.

I've manually tested the fix. It works. Restarting LSP server after stopping it mid-flight works as expected.

@the-mikedavis the-mikedavis changed the title Fix #6687: Crash when doing :lsp-stop right after starting editor LSP: Gracefully handle 'workspace/configuration' from a stopped server Apr 10, 2023
@the-mikedavis the-mikedavis merged commit f8b7e95 into helix-editor:master Apr 10, 2023
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.

Crash when doing :lsp-stop right after starting editor
2 participants