-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Implement the DAP "invalidated" event #106745
Comments
@isidorn I've added the new |
Great. I can look into adding this. For now this event on the VS Code side would refresh the corresponding InvalidatedAreas and would probably automatically re-evaluate all watch expressions? |
@isidorn yes, reevaluating the watches makes sense because watches are unknown to the DAP.
Yes, for VS Code stacks and threads are combined in one UI, but for other clients that might not be the case. |
Related DAP request microsoft/debug-adapter-protocol#128 |
I've released "invalidated" event support in Mock debug. Just use the context menu action "Toggle between decimal and hex formatting". |
I have pushed a first version of this and it seems to work just fine. |
Have a quick try on this new event, it works well. Thanks for your amazing work. @weinand @isidorn After i change the formatter setting, then send an invalidatedEvent to client, the whole variables view will be refreshed. One drawback is the Variables menu doesn't support icon. If icon is allowed, it's very easy to express the toggle effect since most of my formatter options are boolean. This is out of scope of this issue. If icon is viable, i can create a new issue for it. |
@testforstephen thanks a lot for trying it out. Based on your comment adding verified label. |
A new
InvalidatedEvent
has been added to the DAP:vscode/src/vs/workbench/contrib/debug/common/debugProtocol.d.ts
Lines 378 to 393 in 6781d16
This feature request asks for handling the event in VS Code and sending the corresponding
supportsInvalidatedEvent
property in theinitialize
request.The text was updated successfully, but these errors were encountered: