-
Hello, I have an existing vscode web extension that has a custom LSP server (which is running on the webworker). Optimally I would like to reuse the existing extension i have for vscode, and its a little confusing that the documentation for monaco-vscode-api says it supports vscode extensions (?). If anyone could point me in the right direction that would be great. As a code-example I've found this: //e |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 18 replies
-
If you want to run your vscode extension as is, monaco-vscode-api can indeed do that. You can load your vsix using the provided vsix rollup loader. Depending on the feature you want, you may need to enable some services overrides. |
Beta Was this translation helpful? Give feedback.
-
In addition to what @CGNonofr said, there is an example in this repo for webworker based language servers. In this case, the language server is provided by Langium. |
Beta Was this translation helpful? Give feedback.
-
@ejfasting as @msujew already said this looks mostly good. |
Beta Was this translation helpful? Give feedback.
I've just tried adding in in the monaco-vscode-api demo and It worked on the first try:
Can you please open a discussion in monaco-vscode-api instead to not pollute to much here as it's not really related to monaco-languageclient