Provide builtin read only file to web worker #1396
Replies: 1 comment
-
Hey @dimitrisfasoulas, you're probably better off asking in a repo that's more dedicated to monaco. Probably at monaco-languageclient or the monaco repo itself. cc @kaisalmen |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. First of all, thank you for the wonderful job done with Langium. It is a joy to work with.
I have a question regarding providing a built-in library file to Monaco through the web worker.
In the BuiltIn Libraries guide there is a clear example of how to achieve this.
However, the last part that provides the file through a custom FileSystemProvider is VsCode specific and will not work with Monaco on the web.
As a result although I can use the build in library on Monaco and its exported nodes appear for autocompletion, peek definitions or go to references shows an empty file (although it has a correct references number and line numbers)

and an error is thrown in the console:
I was wondering if there is a way to achieve something similar for the web.
Beta Was this translation helpful? Give feedback.
All reactions