-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[vscode] Support workbench.action.debug.start and workbench.action.debug.run #4475
Comments
It's wrong to use BTW, #4448 made |
That's the nuclear option. I do want code lens, just not this code lens (because running / debugging the program is something that the debug / run commands are for, I don't see why they should be triggered through a code lens). But it's a minor thing that I can live with.
That's not what I meant at all. Let me clarify. There are different providers (I don't know what the correct term is) when you try to use the debug / run commands, including Node.js (built-in one). I understand that "debugger extensions" can add providers to that list: https://code.visualstudio.com/api/extension-guides/debugger-extension - for example, the C/C++ extension adds a provider there - it's the same idea mentioned in rust-lang/vscode-rust#557 (comment) |
Agreed. We can have a separate configuration option to hide
I see. You are talking about DebugConfigurationProvider (DCP) . There are two difficulties with them:
The former scheduled to be fixed in the next vscode milestone. But the latter stops me from implementing DCP. |
Hmm, though it should be possible to dynamically update DCP and show only runnables from the current file. It's a DCP new feature from the April vscode (version 1.45). I'll take a stab at this. |
I'm very new to Rust, but is it not possible to just support |
This is exactly what |
Done in #4499 |
I believe we need API from LSP/VS Code to make this work really nice: microsoft/language-server-protocol#944 |
Currently, there is
Run | Debug
abovefn main() {
, which works well, but is kind of annoying as it is always visible.It would be better if the built-in commands could be used (without configuring
launch.json
), same as what was described in rust-lang/vscode-rust#557 (comment)The text was updated successfully, but these errors were encountered: