Skip to content

VS Code Notebooks #1403

Answered by msujew
JanikNex asked this question in Q&A
Mar 5, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hey @JanikNex, sorry for the late response.

the main issue comes from the fact that you have two languages already and the service registry isn't capable of selecting the correct one for the notebook cell documents. This issue isn't exhibited by language servers that only support a single language, as the service registry doesn't need to pick - it will always return the singleton service instance for any document. The example I'm using in the blog post is based on lox, which is just a single language.

The workaround you proposed has the issue that the language server will attempt to load the full .gmnb file as a document of your language. Since this isn't the case (it's just a json file),…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JanikNex
Comment options

Answer selected by JanikNex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants