Replies: 3 comments 5 replies
-
Hey @ydaveluy, I believe using only the |
Beta Was this translation helpful? Give feedback.
-
It is also possible to register the language twice with 'file' and 'builtin' scheme like this: // Options to control the language client
clientOptions: LanguageClientOptions = {
documentSelector: [{ scheme: 'file', language: 'mydsl' }, { scheme: 'builtin', language: 'mydsl' }],
} It is probably better if the scheme is recommended. I can provide a PR to update https://github.com/eclipse-langium/langium-website/blob/4dfaa9b649a85a07ee845618f05e5b0c4dcfa9fe/hugo/content/docs/recipes/builtin-library.md |
Beta Was this translation helpful? Give feedback.
-
Hi @msujew, I would like to warn you about a subtle bug I encountered when using documentSelector: [{ scheme: '*', language: 'mydsl' }], I noticed that when using the diff utility from For these reason I discourage to use '*' for the scheme and I encourage to explicitly define the "valid" schemes manually. |
Beta Was this translation helpful? Give feedback.
-
Hello,
By default, when following the builtin library guide, the hover and the go to definition is not working inside a builtin library.
In extension/main.ts, client options is defined (by langium CLI ?) as
Defining the scheme to 'file' prevent hover and go to definition from working.
Removing the scheme option seems to solve this issue:
Beta Was this translation helpful? Give feedback.
All reactions