-
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
Improve discoverability of 'Restart Frame' #84045
Comments
Currently we show the restart frame in the context menu when the debug adapter supports the restart frame request.
How to improve its discoverability? My idea is the following:
Let me know what you think @weinand @roblourens @connor4312 Pic for reference of inline session actions. However for stack frame we would just have one for now |
Fancy design skill and a good idea. Having the action left of the tree item is not really aligned with what we do in other parts of our UX (open editors being the only exception). And I am not worried about people accidently clicking on it, since that area is not really clickable so far (why would a user click there) |
@misolori that is pretty awesome |
I have pushed a change to show the restart frame icon on hover and on row focus. When the adapter does not support restartFrame action everything behaves as before. So on hover no change Some follow up work:
Try it out and let me know how you feel about it. Thanks! |
It looks like the chrome devtools can, so in js-debug/PWA we should be able to restart frames anywhere in the current stack. But with async stack traces we won't be able to restart frames that happened on a different stack that the current one (even though it's displayed as the 'same' call stack in the UI). I think it would make sense for a 'restartable' flag to to be annotated on stack frames sent back down the DAP. And other languages might only be able to restart the top stack frame / only be able to restart under certain conditions. |
Icon is now in via b24775a: |
Thanks @misolori I also checked and the icon looks nice when selected and it is white. |
Verifier: start debugging and verify that when you hover over a call stack item you see the restart frame icon. Clicking on it restarts the frame (note that Node only supports restartgin the top frame currently) |
Verified tho I have noticed that this makes the call stack view quite nervous - I believe that's because the hide the filename and line/column information on hover |
Yes, the view is now more nervous. I could show this with a timeout. However we do not do this in other views. Open to suggestions. |
Would it be possible to not have either or but to have the restart button push the details to the left? |
Makes sense. Created a follow up item for this #86248 |
No description provided.
The text was updated successfully, but these errors were encountered: