Skip to content
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

Fix: Fix documents' handlers #9

Merged
merged 3 commits into from
Sep 29, 2023
Merged

Fix: Fix documents' handlers #9

merged 3 commits into from
Sep 29, 2023

Conversation

idillon-sfl
Copy link
Member

documents.listen(connection) (TextDocuments) overwrites the connection's handlers relatives to documents. Handlers such as connection.onDidOpenTextDocument or connectiononDidChangeTextDocument were not working anymore, since they were respectively overwritten by documents.onDidOpen and documents.onDidChangeContent, for which we had not assigned any listener function. This was breaking the hover, for example.

This PR also reintroduces TextDocumentSyncKind.Incremental.

documents.listen was overriding connection's handlers relative to documents. The corresponding handlers are now used instead.
Copy link
Collaborator

@WilsonZiweiWang WilsonZiweiWang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@idillon-sfl idillon-sfl merged commit 459ab4c into staging Sep 29, 2023
@idillon-sfl idillon-sfl deleted the Fix-TextDocuments branch September 29, 2023 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants