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

Merge editor: show base at top x2? #162111

Closed
bpasero opened this issue Sep 28, 2022 · 10 comments · Fixed by #163300
Closed

Merge editor: show base at top x2? #162111

bpasero opened this issue Sep 28, 2022 · 10 comments · Fixed by #163300
Assignees
Labels
feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders merge-editor verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@bpasero
Copy link
Member

bpasero commented Sep 28, 2022

This looks and reads a bit weird to me:

image

This does not really do anything when I am in Column Layout which I think is even the default.

@hediet hediet added bug Issue identified by VS Code Team member as probable bug merge-editor labels Sep 28, 2022
@hediet hediet modified the milestones: October 2022, September 2022 Sep 28, 2022
@hediet
Copy link
Member

hediet commented Sep 28, 2022

Can context menu entries be hidden when a context key condition fails?

@bpasero
Copy link
Member Author

bpasero commented Sep 28, 2022

I think precondition or the when clause of the command, I always forget:

precondition?: ContextKeyExpression;

@jrieken knows for sure

@hediet
Copy link
Member

hediet commented Sep 28, 2022

precondition just disables that entry, it doesn't hide it

@bpasero
Copy link
Member Author

bpasero commented Sep 28, 2022

@hediet try with:

when?: ContextKeyExpression;

@jrieken
Copy link
Member

jrieken commented Sep 28, 2022

It is the when clause that defines if an item appears in the menu

@jrieken
Copy link
Member

jrieken commented Sep 28, 2022

In addition to hiding this when it doesn't apply: can we find a better solution for when it applies. Can we have

for column mode

✔️ Show Base

for mixed mode (radio-logic for these two)

✔️ Show Base At Top
🔲 Show Base In Middle

@hediet
Copy link
Member

hediet commented Sep 28, 2022

Fixed
image

@hediet hediet closed this as completed in 0e23403 Sep 28, 2022
@VSCodeTriageBot VSCodeTriageBot added the unreleased Patch has not yet been released in VS Code Insiders label Sep 28, 2022
@bpasero bpasero reopened this Sep 28, 2022
@bpasero
Copy link
Member Author

bpasero commented Sep 28, 2022

I still find this weird:

image

Throwing in some ideas:

Column Layout
I would think just a toggle for the base is fine so that it becomes a single entry.

Mixed Layout
A radio group of 3 entries: "Hide Base", "Show Base Top", "Show Base Center". Alternatively if we worry about too many entries, we could also do a submenu for "Base" specifically with these options.

@VSCodeTriageBot VSCodeTriageBot removed the unreleased Patch has not yet been released in VS Code Insiders label Sep 28, 2022
@bpasero
Copy link
Member Author

bpasero commented Sep 28, 2022

Jo's suggestion in #162111 (comment) is also fine, but I think we need that third entry to allow for hiding when in mixed layout.

@hediet hediet modified the milestones: September 2022, October 2022 Sep 30, 2022
@hediet
Copy link
Member

hediet commented Oct 11, 2022

Verification steps:

Open a merge conflict and verify these menu entries:

image

image

@hediet hediet added feature-request Request for new features or functionality verification-needed Verification of issue is requested and removed bug Issue identified by VS Code Team member as probable bug labels Oct 11, 2022
hediet added a commit that referenced this issue Oct 11, 2022
hediet added a commit that referenced this issue Oct 11, 2022
@VSCodeTriageBot VSCodeTriageBot added unreleased Patch has not yet been released in VS Code Insiders insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Oct 11, 2022
@rzhao271 rzhao271 added the verified Verification succeeded label Oct 25, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders merge-editor verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants