-
Notifications
You must be signed in to change notification settings - Fork 113
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
Expose setting to enable LSP communication trace #713
Comments
As discussed at https://clangd.llvm.org/troubleshooting.html#gathering-logs, this can be done by adding |
Thanks, it works. That said, the vscode language client libraries support a setting like So I suppose you wouldn't want to rename the existing setting to make the standard one work? If not then feel free to close this issue. |
Do you know how this works at the protocol level? |
I'm not sure I understand the question but since the whole protocol communication goes through the language client, it's able to post this data to the output panel. The log would look something like this (it's from a different server):
It's arguably more readable that one-liners from clangd. Here is the change that would be needed - rchl@9464e4e EDIT: Also... enabling
so the server can toggle some logic based on that (like the logging associated with the current |
Ok, I see, this logging is implemented entirely in the client.
Note that clangd will also pretty-print the protocol traffic if Also, the server logs include additional information beyond the protocol traffic, so this client-side logging couldn't replace them altogether. (But we could still provide the client-side logging as well, for discoverability purposes.)
Thanks, this is helpful.
@hokein, any thoughts on whether it's OK to rename the existing |
Most LSP extensions expose a setting to configure the verbosity of the LSP output in the extension output panel. This extension doesn't seem to support that. There is
clangd.trace
option but that is not what I'm looking for (it's a lower level communication).Most third party of built-in extensions expose a setting like
"ruff.trace.server": "verbose",
"json.trace.server": "verbose",` etc.The text was updated successfully, but these errors were encountered: