-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 way to restart language server for a specific file #3727
Comments
By language server I assume you mean the Microsoft.VSCode.CPP.IntelliSense.Msvc.exe process -- you could trying do some a "kill Microsoft.VSCode.CPP.IntelliSense.Msvc.exe" command. It sounds like fixing the root bugs might be a better solution. I think they're caused by our didOpen event getting delayed for the custom config provider, but then we receive other messages that aren't delayed. |
I don't want to kill the whole process, I notice in the debug logs that after about 20 seconds it receives a message saying Another option would be a button to reforce sending the API data to get intellisense. I do agree fixing the root bugs would be the best fix, but I know that doing that might take a while. |
We never output "shutting down language server for file" -- do you mean |
This would be a relatively easy thing to add. |
The fix is available with https://github.com/microsoft/vscode-cpptools/releases/tag/1.7.0-insiders2 (C/C++: Restart IntelliSense for Active File command). |
#3603 and #2966 are still open, and I still randomly see at least 2966, which seems like a race condition somewhere. Closing the file, waiting for the language server for that file to close, and reopening always solves both issues, so it would be nice if there was a way to manually reset the language server on a file. That way the delay wouldn't be needed, and could just be immediately restarted.
The text was updated successfully, but these errors were encountered: