You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Indicate click target when invoking editor line number context menu #176557
Kai had the suggestion that we should select the whole line corresponding to the line number context menu target to reduce ambiguity about which line is going to be selected. This does align with what happens on github.com and is not a breaking change since we never enabled right click context menus on the line number in the first place. Looping in David Dossett (@daviddossett) for UX and Henning Dieterichs (@hediet) for editor feedback
Explored this, seems pretty reasonable and does address the problem of ambiguous context, the only thing I'm wondering about is whether it also makes sense to have this selection behavior when right clicking in the editor gutter, as it would be a behavior change for the debug/test context menus, and it would not preserve your in-editor selection (which could be bad if the user has multiple selections going). Any feedback Connor Peet (@connor4312)?
Hm, I'm honestly not a fan of selecting the line when right clicking on test decorations or working with breakpoints. In both cases you aren't "switching contexts" away from what you were doing, and selecting the line is never going to be a desired outcome of right-clicking a gutter
To clarify how to test this you just right-click in the gutter and an option should pull up which says : `copy vscode id"? Is this in vscode desktop and are there parameters on which types of files it works for?
Eleanor Boyd (@eleanorjboyd) are you pointing out that there's a context menu for .py but not .json? That is by design since you cannot set breakpoints in a json file so none of your available actions apply to the .json file. The active selection seems to be changing correctly based on your mp4 (which is the scope for this issue).
Is it supposed to have a related context menu or am I supposed to see the "open in vscode.dev" menu item come up for a json like it did in yours? If that looks correct then I just misunderstood the issue I was verifying. Sorry!
You'll only see the Copy vscode.dev link action in a GitHub repo. There are other actions if you install the GitHub Pull Requests extension for copying GitHub links. If this is a GitHub repo then that's a bug.
Activity
joyceerhl commentedon Mar 8, 2023
Kai had the suggestion that we should select the whole line corresponding to the line number context menu target to reduce ambiguity about which line is going to be selected. This does align with what happens on github.com and is not a breaking change since we never enabled right click context menus on the line number in the first place. Looping in David Dossett (@daviddossett) for UX and Henning Dieterichs (@hediet) for editor feedback
joyceerhl commentedon Mar 9, 2023
Explored this, seems pretty reasonable and does address the problem of ambiguous context, the only thing I'm wondering about is whether it also makes sense to have this selection behavior when right clicking in the editor gutter, as it would be a behavior change for the debug/test context menus, and it would not preserve your in-editor selection (which could be bad if the user has multiple selections going). Any feedback Connor Peet (@connor4312)?
right-click-select-line.mp4
connor4312 commentedon Mar 9, 2023
Hm, I'm honestly not a fan of selecting the line when right clicking on test decorations or working with breakpoints. In both cases you aren't "switching contexts" away from what you were doing, and selecting the line is never going to be a desired outcome of right-clicking a gutter
joyceerhl commentedon Mar 9, 2023
Yea maybe we have this selection behavior only for a right click on the line number specifically then.
eleanorjboyd commentedon Mar 21, 2023
To clarify how to test this you just right-click in the gutter and an option should pull up which says : `copy vscode id"? Is this in vscode desktop and are there parameters on which types of files it works for?
joyceerhl commentedon Mar 21, 2023
Steps:
eleanorjboyd commentedon Mar 21, 2023
seeing this on two different file types:
Screen.Recording.2023-03-21.at.11.39.40.AM.mov
joyceerhl commentedon Mar 21, 2023
Eleanor Boyd (@eleanorjboyd) are you pointing out that there's a context menu for .py but not .json? That is by design since you cannot set breakpoints in a json file so none of your available actions apply to the .json file. The active selection seems to be changing correctly based on your mp4 (which is the scope for this issue).
eleanorjboyd commentedon Mar 21, 2023
Is it supposed to have a related context menu or am I supposed to see the "open in vscode.dev" menu item come up for a json like it did in yours? If that looks correct then I just misunderstood the issue I was verifying. Sorry!
joyceerhl commentedon Mar 21, 2023
You'll only see the Copy vscode.dev link action in a GitHub repo. There are other actions if you install the GitHub Pull Requests extension for copying GitHub links. If this is a GitHub repo then that's a bug.