Skip to content
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

debug: improve step in target UI #152131

Merged
merged 3 commits into from
Jun 24, 2022
Merged

Conversation

connor4312
Copy link
Member

This is based on the DAP proposal here, which we should ratify before
merging this: microsoft/debug-adapter-protocol#274

This PR changes the context menu action to try to step into the target
at the cursor position, if there's a step target with a range at that
position. Otherwise, it opens the context menu as it did before.

Additionally, it adds a Debug: Step Into Target command which, when
called (e.g. on keybinding) will show step targets for the current
frame and allow the user to choose one.

See the #ux channel for a video of what this looks like.

Fixes #149871

This is based on the DAP proposal here, which we should ratify before
merging this: microsoft/debug-adapter-protocol#274

This PR changes the context menu action to try to step into the target
at the cursor position, if there's a step target with a range at that
position. Otherwise, it opens the context menu as it did before.

Additionally, it adds a **Debug: Step Into Target** command which, when
called (e.g. on keybinding) will show step targets for the current
frame and allow the user to choose one.
@bpasero
Copy link
Member

bpasero commented Jun 15, 2022

Killer feature for me would be to have a way to Ctrl-click into a definition to step into, so that you can step into code via goto definition semantics.

roblourens
roblourens previously approved these changes Jun 15, 2022
@connor4312 connor4312 marked this pull request as ready for review June 24, 2022 21:37
@vscodenpa vscodenpa added this to the June 2022 milestone Jun 24, 2022
@connor4312 connor4312 enabled auto-merge (squash) June 24, 2022 21:39
@connor4312 connor4312 merged commit 6b4b361 into main Jun 24, 2022
@connor4312 connor4312 deleted the connor4312/nicer-step-in-targets branch June 24, 2022 21:46
@github-actions github-actions bot locked and limited conversation to collaborators Aug 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improving the UI for "step in targets"
5 participants