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

Breakpoint inline edit button should be a submenu #115111

Closed
TylerLeonhardt opened this issue Jan 26, 2021 · 11 comments
Closed

Breakpoint inline edit button should be a submenu #115111

TylerLeonhardt opened this issue Jan 26, 2021 · 11 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality hackathon Label reserved for specific events insiders-released Patch has been released in VS Code Insiders on-release-notes Issue/pull request mentioned in release notes verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@TylerLeonhardt
Copy link
Member

Testing #114345

I can set an expression and a hit count on function breakpoints:

image

but the ✏️ button only changes the expression.

If there is only 1 button, I would have expected it to either:

  1. edit the function name
  2. only hsve 1 button if either expression or hit count was set and 2 buttons if both expression and hit count were set (the second button to edit the hit count)

As it stands I have to realize that the edit button only edits the expression and then cancel and right click if I want to edit the hit count or function name.

@isidorn
Copy link
Contributor

isidorn commented Jan 26, 2021

@TylerLeonhardt I like the dea of having two buttons, however would you expect different icons? Since I think showing two of the same icon does not really work, or does it?

fyi @misolori

@isidorn isidorn added debug Debug viewlet, configurations, breakpoints, adapter issues under-discussion Issue is under discussion for relevance, priority, approach labels Jan 26, 2021
@TylerLeonhardt
Copy link
Member Author

however would you expect different icons?

Yes I'd expect different icons. I don't have any suggestions for what they should look like though... maybe an expression is something like [?]✎ but then [#]✎ is hit count? (where the pencil is in front of a piece of paper with ? or # on it)

@TylerLeonhardt
Copy link
Member Author

might need a 3rd button for log points... not sure.

@gjsjohnmurray
Copy link
Contributor

What about giving the edit button an alt command as well? With #101995 implemented the tooltip would convey both.

IIRC there was a recent request for these buttons to support a dropdown list of commands from which to pick. Pinging @eamodio as I think it may have come from him.

@miguelsolorio
Copy link
Contributor

Could the edit button show a dropdown with the edit options? I'd really like to avoid making icons complicated as they will slow the user down as they parse what it means.

@eamodio
Copy link
Contributor

eamodio commented Jan 26, 2021

With the recent submenu work, we can support these actions being drop down menus.

@isidorn
Copy link
Contributor

isidorn commented Jan 27, 2021

@misolori Yeah I like that idea!
Assigning optimisticaly to January and might push out to february

@isidorn isidorn modified the milestones: January 2021, February 2021 Jan 27, 2021
@isidorn isidorn changed the title Edit button always edits expression Breakpoint inline edit button should be a submenu Jan 28, 2021
@isidorn isidorn added feature-request Request for new features or functionality and removed under-discussion Issue is under discussion for relevance, priority, approach labels Jan 28, 2021
@isidorn
Copy link
Contributor

isidorn commented Jan 28, 2021

Pushing this out to next milestone since I did not have time for this in endgame.
fyi @weinand and @connor4312 for the submenu idea

@TylerLeonhardt TylerLeonhardt added the hackathon Label reserved for specific events label Feb 8, 2021
@isidorn isidorn modified the milestones: February 2021, March 2021 Feb 25, 2021
@weinand
Copy link
Contributor

weinand commented Mar 3, 2021

@isidorn yes, let's try a submenu.

@isidorn
Copy link
Contributor

isidorn commented Mar 9, 2021

I went with the submenu approach.

However for regular breakpoint I decided to go with single click -> open in editor. Since there the dropdown is present to change what you are editing. If you think that having a submenu for regular breakpoints is also nice let me know and I can change it there as well.

Screenshot 2021-03-09 at 15 23 04

@isidorn isidorn added the verification-needed Verification of issue is requested label Mar 9, 2021
@isidorn isidorn closed this as completed in e2ba7c6 Mar 9, 2021
@isidorn
Copy link
Contributor

isidorn commented Mar 16, 2021

To verify:
Have a function breakpoint, make sure that clikcing on the Edito action shows the menu as shown in the picture

@jrieken jrieken added the verified Verification succeeded label Mar 23, 2021
@isidorn isidorn added the on-release-notes Issue/pull request mentioned in release notes label Mar 26, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality hackathon Label reserved for specific events insiders-released Patch has been released in VS Code Insiders on-release-notes Issue/pull request mentioned in release notes verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

8 participants
@eamodio @jrieken @weinand @isidorn @TylerLeonhardt @gjsjohnmurray @miguelsolorio and others