-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Direct the user to the logs channel when build scripts fail #13995
Comments
These notifications are done by the language client implementation of VSCode https://github.com/microsoft/vscode-languageserver-node, we can't modify it unfortunately. I'd love to add a button to it, but I keep forgetting about opening an issue upstream about this :) |
@Veykril is this the extension point you are talking about? rust-analyzer/crates/rust-analyzer/src/lsp_utils.rs Lines 60 to 62 in 9a6294d
Would it be solved by using |
That is unfortunately not necessarily enough (though thanks for bringing the request up, I was only aware of the notification), that request will render a button, but the button press result will be sent back to the server. For opening the logs we'd need to handle this in the client. There is no way to hook into that handling on the VSCode side though unfortunately -> https://github.com/microsoft/vscode-languageserver-node/blob/56c23c557e3568a9f56f42435fd5a80f9458957f/client/src/common/client.ts#L1045-L1077 I suppose we could add an LSP extension for a showLogs notification that the server sends to the client, then we could have an exchange like:
That seems like a decent solution here actually. |
Sounds great! Thank you for looking into this. |
For the following notification, when build scripts panic:
It wastes users time and effort to hunt for the correct channel and scroll in it when that happens.
LogOutputChannel.show(true)
(link to API).false
by default)?Show Logs
?Thanks!
The text was updated successfully, but these errors were encountered: