Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shigma opened this issue Sep 20, 2021 · 1 comment
Open

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

shigma opened this issue Sep 20, 2021 · 1 comment

Comments

@shigma
Copy link

shigma commented Sep 20, 2021

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
@lukejacksonn
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants