-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Disable buttons for unavailable actions #15
Comments
Not possible until they expose that state microsoft/vscode#30810. |
@fabiospampinato since you're more familiar with the VS Code extension APIs I wanted to ask you before I do it, can we run querySelector and/or MutationObserver on the DOM? In that case we can grab state from the action bar. Kinda of a hacky workaround but good enough until Microsoft releases an actual API. |
No we can't access the DOM at all. |
Maybe the state of the debugger can actually be inspected now. For future reference: https://github.com/hediet/vscode-debug-visualizer/blob/db1e5a8086bab5a8d4b65f0255be5372ae3e6a35/extension/src/debugger/VsCodeDebugger.ts#L84 |
It looks like now there is a |
In the "old" toolbar, I could clearly see which buttons/actions are enabled/available. It's more difficult to say here. For example, I don't know if my debugger is paused currently or not.
PS I think having the demo gif closer to the top of README would be better.
Thanks!
The text was updated successfully, but these errors were encountered: