monaco-volar icon indicating copy to clipboard operation
monaco-volar copied to clipboard

Implemented in monaco-editor

Open cjboy76 opened this issue 2 years ago • 3 comments

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 ?

cjboy76 avatar Oct 09 '22 03:10 cjboy76

Well. I'm not pretty sure the correct way.

Friendly ping @orta. Would you mind give some suggestions?

Kingwl avatar Oct 14 '22 10:10 Kingwl

~~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

orta avatar Oct 14 '22 10:10 orta

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.

denys119 avatar Mar 06 '23 15:03 denys119