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

Update WorkspaceClientCapabilities to state that WorkspaceEdit's documentChanges is supported #56

Merged
merged 1 commit into from
Feb 12, 2018

Conversation

rcjsuen
Copy link
Collaborator

@rcjsuen rcjsuen commented Feb 12, 2018

Support for workspace/applyEdit was added in #21 but the capabilities of the client was not updated to include workspaceEdit: { documentChanges: true }. This pull request adds this to the capabilities so that servers will know that this client supports this feature.

In an earlier comment I had stated that our support for documentChanges was incomplete because no version checking was made. However, I was wrong because the versions were being checked by vscode-base-languageclient.

https://github.com/TypeFox/vscode-languageserver-node/blob/e0c1f194dabede0409f0d8f4e4e2eeccc65e1535/client/src/base.ts#L1502-L1512

Hence, the versions of the documentChanges have actually already been verified by the time they get to our applyEdit function implementation.

Sorry for the any confusion that I may have caused.

As this LSP client supports WorkspaceEdit's documentChanges, this
should be declared as a capability so that servers know that it is
okay to send this request to this client.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
Copy link
Contributor

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

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

that's fine, thank you again!

@rcjsuen rcjsuen merged commit cfacfcc into TypeFox:master Feb 12, 2018
@rcjsuen rcjsuen deleted the documentChanges branch February 12, 2018 08:54
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.

None yet

2 participants