Skip to content

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

Merged
the-mikedavis merged 1 commit into
helix-editor:masterfrom
koskeller:fix-crash-with-lsp-stop
Apr 10, 2023
Merged

LSP: Gracefully handle 'workspace/configuration' from a stopped server#6693
the-mikedavis merged 1 commit into
helix-editor:masterfrom
koskeller:fix-crash-with-lsp-stop

Conversation

@koskeller

Copy link
Copy Markdown
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