-
Notifications
You must be signed in to change notification settings - Fork 29.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
Render progress for DAP progress events #92253
Comments
@isidorn I have added experimental DAP progress support to I suggest that we start prototyping the debug progress UI for the use case "progress independent from a specific request". This is the important use case that @chuckries and @DanTup are looking for. I will start this effort by adding this use case to Mock Debug. |
@weinand sounds good. Let me know when Mock Debug has adopted this.
|
@isidorn Yes, let's start by showing "unspecific progress" at the top of the Debug Viewlet. A shortcoming of the "top of the Debug Viewlet" location is that the user won't be able to cancel it, right? |
@weinand while we render progress we could also render a X or some other cnacel action in the debug viewlet title area. Pressing that would send a cancel. Check out search for long running search operations does somethign similar. |
@isidorn some random notes:
|
@weinand thanks for adding the progess support for Mock debug. I plan to jump on this today.
|
I have pushed the inital support for this.
What is not covered by this work and we can tackle as seperate issues once clients adopt this:
Note that I had to do a slight change in mock debug such that it no longer waits after a progress has been canceled microsoft/vscode-mock-debug@29ec169 Try it out and let me know what you think. |
Based on the great feedback from @bpasero we have decided to show progress via progress notifications. |
We have done the changes and now the progress cancelation is much easier to manage by users imho. There is still some work in progress:
Try it out and let me know what you think. |
@weinand I have pushed a commit such that we now also respect the |
Nice! How about also setting options.source to something, so the message gets a [source] prefix that lets the user know where the message is coming from? |
That should be the extension I guess that sets the progress, I like that 👍 |
@gjsjohnmurray excellent suggestion. @isidorn Since the DAP does not know anything about extensions, we cannot put something in the spec that says that the extension's name has to go into the progress' "title" attribute. I suggest that we let VS Code add the extension name by using a format string like |
@weinand @gjsjohnmurray makes sense, good sugggestion. |
I already talked to @bpasero about this and I think we should not show the |
Or perhaps For example |
In the status item we could start with the progress "title", and if there is a progress "message", we would overwrite the title with the message (so we only show one thing). |
The status bar is capable of showing title and message at the same time as far as I can tell. It would simply show it as |
Related debug adapter protocol issue microsoft/debug-adapter-protocol#92
fyi @weinand
The text was updated successfully, but these errors were encountered: