Digging through the Monaco source code, it looks like quickOpen functionality is included (used for 'go to file', etc in VS Code — https://unpkg.com/[email protected]/dev/vs/editor/editor.main.js and Ctrl+F for quickOpen).
I've searched all open issues here, StackOverflow, etc but I can't find anything about implementing custom quickOpen menus in Monaco.
https://github.com/Microsoft/monaco-editor/issues/199 talks about customizing the context menu specifically, but I want to create an entirely new menu trigged by custom keyboard shortcuts. Any pointers on how one would go about doing this?
This can be done by:
editor.addOverlayWidget(...)editor.addAction(...)@alexandrudima Is there a way to access the Implementation the Command Palette(as example) uses, or has the Widget to be implemented by myself?
By implementation i mean the frontend textfield with the list under it that holds all the available items.
@chrmarti has managed (in a hacky way) to get ahold of the command palette in the standalone editor. Maybe he remembers all that he had to do.
Attaching the TS file (as .txt) that mimics VS Code's QuickOpen for Monaco (server-side not included). I had it running with "monaco-editor": "0.13.1". HTH
Most helpful comment
This can be done by:
editor.addOverlayWidget(...)editor.addAction(...)