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

Allow to hide menu items from their respective menus #154801

Merged
merged 5 commits into from
Jul 11, 2022
Merged

Conversation

jrieken
Copy link
Member

@jrieken jrieken commented Jul 11, 2022

This PR fixes #

jrieken added 4 commits July 11, 2022 14:14
have persisted menu item hide states in menu service, create `MenuItemAction` with an util that can hide itself and its siblings (from the same menu), some adoptions
@jrieken jrieken self-assigned this Jul 11, 2022
@vscodenpa vscodenpa added this to the July 2022 milestone Jul 11, 2022
@jrieken jrieken added the menus Menu items and widget issues label Jul 11, 2022
* Remove the element at `index` by replacing it with the last element. This is faster than `splice`
* but changes the order of the array
*/
export function removeFastWithoutKeepingOrder<T>(array: T[], index: number) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to learn about this new utility!

@jrieken jrieken merged commit d1de1c6 into main Jul 11, 2022
@jrieken jrieken deleted the joh/compact-ostrich branch July 11, 2022 14:09
@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
menus Menu items and widget issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants