-
Notifications
You must be signed in to change notification settings - Fork 118
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
[feature request] After clangd binary is install invoke 'clangd.restart' command #744
Comments
I'm not the original author of this code, but taking a quick look, I think you're right that restarting the server (or to be more precise, just starting the server which has now been downloaded) should be sufficient. Are you interested in putting together a PR that makes this change? Note that the relevant code is spread across two repos, this one and https://github.com/clangd/node-clangd/. |
I can take a shoot at this. I suppose |
In general, breaking changes to node-clangd are fine. Its consumers should be relying on a specific version, such that upgrading to a new version requires an intentional code change on their part; if/when they do that, they can update their usage to reflect any breaking changes. As an npm package, node-clangd does follow semantic versioning, but since the major version is 0, we do not make any guarantees about stability at this time. That said...
... for this change in particular, I think it's fine to keep the method name |
I played around with the code. The easiest and most straightforward change would be to just change the I don't think we need to prompt the user anymore with invoking just the The most straightforward solution to this issue would be to change the Because of above, I suggest to add a 'asynchronous condition variable' that a |
This was fixed in #749. |
Right now, after the installation of clangd is finished, the extension prompts us to reload a window. I think we should be able to just restart the server (
clangd.restart
command) instead. This is much faster, especially in the context of remote/devcontainer workflow.I don't have a full picture here but I believe we could even do it automatically, without the user input.
The text was updated successfully, but these errors were encountered: