Is there a way to avoid registering commands,menus and keybindings that comes with Theia Plugins #9105
Unanswered
arunswarnam
asked this question in
Q&A
Replies: 1 comment 4 replies
-
@arunswarnam I'm not sure a simple approach exists since removing a plugin's contributions are fundamental to their functionality and use, and it is an overall uncommon use-case. I'm not sure how useful it is to consume plugins but only accept a subset of their contribution points. Since the installation of plugins are dynamic, I'm not sure how you will approach removing contributions for a specific plugin, but accepting those of another. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am attempting to consume some VS Code extensions that offers some language contributions but I also see those VSCode extension (theia plugins) register's some commands that I don't want. Can you suggest some handles that I can look into to get rid of/avoid registering the commands/menu items/keybinding brought in by plugins?
I found a hacky way to avoid registering commands by forcing
plugin.contributes.commands
toundefined
inside my custom extension, before passing the control tosuper.handleContributions(clientId, plugin)
where plugin contributions are handled but I doubt if it is the right thing to do.Beta Was this translation helpful? Give feedback.
All reactions