Removing Theia Context menu items on conditional basis #14555
Unanswered
Shulabh-Prakash
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hey @Shulabh-Prakash, you will need to unregister the the associated commands. See here for the command used in the theia/packages/navigator/src/browser/navigator-contribution.ts Lines 399 to 402 in c8ed498 After unregistering them, you can register a new handler for the command, that uses an |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to remove some specific context menu items (such as "Select for Compare," "Copy Path," etc.) based on certain conditions related to the URI. Specifically, I want to conditionally hide or remove these items based on the URI that’s being used. Is there a way to achieve this.
Any help or pointers on how to approach this would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions