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

Add "clangd.restart" command. #35

Merged
merged 2 commits into from
Jun 8, 2020
Merged

Add "clangd.restart" command. #35

merged 2 commits into from
Jun 8, 2020

Conversation

hokein
Copy link
Collaborator

@hokein hokein commented May 27, 2020

Similar to YCM's "RestartServer" command.

If clangd crashes, vscode will try to restart clangd up to 5 times. After that, there is no way to restart clangd except reloading the vscode window. However, reloading the vscode window will lose the whole working context in vscode, especially you are running programs in the integrated terminal.

"clangd.restart" command will restart clangd server without reloading the vscode window.

@hokein hokein requested a review from sam-mccall May 27, 2020 14:42
@benjaminhdavis
Copy link

We may need the dispose call similar to the vscode-go plugin's restart found here https://github.com/microsoft/vscode-go/pull/2530/files

@hokein
Copy link
Collaborator Author

hokein commented May 28, 2020

We may need the dispose call similar to the vscode-go plugin's restart found here https://github.com/microsoft/vscode-go/pull/2530/files

Thanks, this is a good point.

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.

3 participants