Skip to content
Advertisement

How to hide the “Command Palette” item from the list of actions in Monaco Editor

I have been looking everywhere, Monaco docs, github, SO but there seems to be no examples as to how to hide and disable the “command palette” command from the context menu:

command palette

Any advice?

Advertisement

Answer

Oh well, I had no choice but to hack my way into the DOM in order to remove the “Command Palette”.

It’s very far from ideal and it also doesn’t really disable the F1 shortcut but it’s only thing I have for now:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement