How do I remove options from the contextmenu for monaco-editor?

爱⌒轻易说出口 提交于 2021-02-10 15:08:05

问题


I'm currently looking to find a way to remove or hide the "Go to Definition" and "Go to References" options that display when a JS file is opened in monaco-editor as part of their built-in support, in favor of including custom options to go to definition and find references.

I believe there's no public API to accomplish this, and my attempts to hide the options with CSS have been unsuccessful, so any pointers or help would be appreciated, thanks.

来源:https://stackoverflow.com/questions/62659865/how-do-i-remove-options-from-the-contextmenu-for-monaco-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!