monaco-volar
monaco-volar copied to clipboard
Implemented in monaco-editor
It is working great so far, Is it possible to work with monaco-editor but not monaco-editor-core ? Or any way that I could register "vue" language in monaco-editor ?
Well. I'm not pretty sure the correct way.
Friendly ping @orta. Would you mind give some suggestions?
~~Never needed to use monaco-editor-core, from a glance it's the underlaying data models for monaco-editor - I think if you're working with those levels of primitives it's quite reasonable that you should be able to give a PR here to get this repo working with it~~
Ah they want to know the high level monaco-editor APIs for this sort of stuff, yeah, it'd need to register using monaco.languages.register({ id: "vue", })
and then set up the LSP and workers from that, you can refer to https://github.com/microsoft/monaco-editor/tree/22698f2c1b65020c7fd9375739d3072c704dd5a4/src/language/json as a simple example
I am also interested if it is possible to work with monaco-editor instead of monaco-editor-core. Maybe this PR https://github.com/Kingwl/monaco-volar/pull/16 will work for this issue.