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

Fixes #6008, Enabled onSave and onOpen textDocument #6010

Merged
merged 3 commits into from
Jun 29, 2021

Conversation

tm1000
Copy link
Contributor

@tm1000 tm1000 commented Jun 28, 2021

Fixes #6008

This enables the already written textDocument methods of didOpen, didClose, and didSave which means that once the file is opened the LanguageServer is immediately notified.

This allows the document to almost instantaneously show markup (as before it needed a change event for it to function)

These methods were already written but the Language Server never properly notified the client of such.

Additionally I changed verboseLog to a public method so that it can be called from inside textDocument so that I could replace error_log with verboseLog as per the spec (error_log simply outputted right to STDOUT which violates the LSP specification)

@weirdan
Copy link
Collaborator

weirdan commented Jun 29, 2021

Thanks!

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.

Language Server textDocumentSync are limited
2 participants