Does this library support usage of a custom language's server worker? #594
Lemour-sudo
started this conversation in
General
Replies: 2 comments 1 reply
-
related #622 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, I decided to create an issue from this. I believe there might be someone who has recently tried the approach mentioned here. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I see that we can use
getWorkerUrl
to run a custom worker.However, I am not sure how to link this to the
Editor
component as thelanguage
property in the component is said to be for supported certain languages: https://github.com/microsoft/monaco-editor/tree/main/src/basic-languagesIs it possible to just have a custom language's server worker integrated with this library's editor instead of relying on the hardcoded keywords and tokens?
Moreover, the
label
argument being passed togetWorker
does not detect a custom registered language id. In the code snippet below, the logged label is just "editorWorkerService" instead of the registered "lingo" language id. Is this how it is meant to be used?This is the snippet I have running using Vite:
Beta Was this translation helpful? Give feedback.
All reactions