-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add normalizing notebook documents service #1743
base: main
Are you sure you want to change the base?
Conversation
@msujew please let me know when we have an alpha for this. would like to test. |
3838304
to
1409e5d
Compare
@cdietrich I got around to publish |
thx will give it a test |
hmmm its not working. need to debug .... |
for some reason the notebook documents dont end up in text documents |
we do this in our service registry but this.sharedServices.workspace.TextDocuments.all() is empty |
@cdietrich Thanks for looking into it. I'll take another look to see what's wrong. I probably missed something when adapting the Microsoft implementation. |
Then I ask for cell and document by cell I get one step more need to figure out why |
Maybe there is still to much double escaping somewhere |
hmmm no. when i use
in the service registry the cell map is still empty in the early stage (guard in fireDocumentUpdate) |
hmmm somehow not all docs end up in this is cause vscode sends only 4 of 9 cells. need to digg why update: found the reason for it. now if still end up with failing services / no registered service found. |
upon further debugging |
looks like i somehow end up with multiple NormalizedTextDocs. need to figure out why. |
hmmmm should this be NotebookDocuments: (services) => new NormalizedNotebookDocuments(services.workspace.TextDocuments) |
looks better now. we will do some thorough testing tomorrow |
325db9e
to
52183ea
Compare
All tests from our side look good |
Closes #1496.
This is a continuation of #1660. Since the
NotebookDocuments
class exported byvscode-languageserver
is quite specific in what it accepts as aTextDocuments
instance (only instances of the class exported byvscode-languageserver
), adopters of Langium, can no longer plug Langium'sTextDocuments
service in there.However, the
NotebookDocuments
implementation ofvscode-languageserver
had the same URI encoding issues asTextDocuments
anyway, and so we need to roll our own. This newNormalizingNotebookDocuments
is now a default service of the shared LSP services and can be accessed by all Langium adopters.