monacode icon indicating copy to clipboard operation
monacode copied to clipboard

Can I use monacode as an alternative to monaco-editor?

Open shigma opened this issue 2 years ago • 1 comments

First a lot thanks for authoring this great package. It's really much easier to use than monaco-editor 🤣

I'm trying to migrate monaco-editor to monacode because I just cannot build up monaco-editor with esbuild. However I met some problems.

  1. Can I get access to all monaco apis directly? For now I have to do something like import { Uri } from 'monacode/src/monaco/editor/editor.main.js', and that's a little bit annoying.
  2. It seems that some actions are missing. eg. editor.action.goToDefinition

shigma avatar Sep 20 '21 19:09 shigma

I wouldn't say you can use it as a drop in replacement, monacode is essentially a fork of monaco-editor with an opinionated build step and thus output. You could dig into the code (and commit history) in this repo though and probably enable or expose the stuff you want!

lukejacksonn avatar Sep 20 '21 19:09 lukejacksonn