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

Prompt to restart lsp if it has stopped #575

Merged
merged 1 commit into from
Jun 1, 2024
Merged

Conversation

TwitchBronBron
Copy link
Member

Whenever the language server crashes, vscode will restart it. After the 5th crash, they'll leave it permanently crashed. There seems to be no time limit on adding up to the 5, so even after a few days, vscode may still terminate the language server.

This PR adds tracking for when language server is stopped and then not started back up again after a period of time.
For example, 20 seconds after after the final failure, this event fires so that we can show a "wanna restart it" popup.

image

@TwitchBronBron TwitchBronBron merged commit 92b7cb3 into master Jun 1, 2024
4 checks passed
@TwitchBronBron TwitchBronBron deleted the restart-lsp branch June 1, 2024 01:55
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.

1 participant