Skip to content

fix terminal toolbar reset menu visibility #171361

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

HesamSoleymani
Copy link

Fixes #171187

I'm solving this issue as a good-first-issue.
I think the ideal case would be considering the default hiddenness of menu items and then not showing the "reset menu" option in that default state. But currently, it doesn't show up the reset menu option when all items are visible (which is not the default state anymore after adding options like "Run active file" which are hidden by default).
Unfortunately, I couldn't find a way to access the isHiddenByDefault property in toolbar.ts (where showing or hiding the reset menu option is handled). I think It would be nice if we also have that property in the IAction interface so that we can easily detect the default state and then decide whether to show or not show the reset menu option.
For now, the only change in this pr is always showing the reset menu option which I think is at least better than the current state.

@HesamSoleymani HesamSoleymani force-pushed the fix-terminal-toolbar-reset-menu-hide branch from 00fe169 to 9588cf5 Compare January 15, 2023 15:23
@sbatten sbatten requested a review from jrieken January 23, 2023 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reset Menu doesn't show up when all items are visible, even if some are hidden by default
3 participants