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 lsp types to allow workspace/applyEdit to work #816

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

baronfel
Copy link
Contributor

@baronfel baronfel commented Jul 20, 2021

This adds explicit null value handling to the Version property of the VersionedTextDocumentIdentififer type, so that workspace/applyEdit works.

This endpoint, unlike many other endpoints, requires the property to be present and explicitly null if empty. Rust-analyzer had the same issue.

I also took the opportunity to add some additional clientCapabilities based on the LSP spec.

@baronfel baronfel merged commit 0d3c341 into ionide:master Jul 20, 2021
@baronfel baronfel deleted the lsp-type-fixes branch July 20, 2021 20:43
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.

1 participant