-
Notifications
You must be signed in to change notification settings - Fork 30.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
Support cancellation in DAP communication #80374
Comments
@isidorn I've added cancelation support to the "aweinand/cancelation" branch of mock-debug. |
There is already some infrastrucutre for canceling pending requests here |
@isidorn just be careful that you do not cancel too much, because that method blindingly cancels all pending requests. As an experiment you could call that method before the "continue" request even without checking for "supportsCancelRequest". |
@weinand I went through all the requests and the only ones which make sense to survive between steps is all the |
I have pushed the initial support for this. Whenever we step, or a session is stopped we check if the adapter supports
Try it out and let me know what you think. |
What is missing:
|
Adding verified label since I have no good ideas on how a tester can nicely verify this. I also tested this. |
Currently there is no way for the VS Code UI to cancel a long running request in the debug adapter.
Example:
VS Code sends out a variables request which takes very long to complete because the variable is a huge array.
User sees the spinner in the variables view and presses "Step over".
This action should cancel the original variables request, however currently there is no way for VS Code to tell the debug adapter to stop what it is currently doing.
Related issues:
Cancellation in LSP:
https://microsoft.github.io/language-server-protocol/specification#cancelRequest
The text was updated successfully, but these errors were encountered: