]> git.lizzy.rs Git - rust.git/commit
Merge #415
authorbors[bot] <bors[bot]@users.noreply.github.com>
Thu, 3 Jan 2019 13:54:43 +0000 (13:54 +0000)
committerbors[bot] <bors[bot]@users.noreply.github.com>
Thu, 3 Jan 2019 13:54:43 +0000 (13:54 +0000)
commit5443205fdd9f4886cc88ad15c3a6061ffa90ca19
tree380084b87b5b6b9174f0a8eb6a7652942e862e23
parentaea2183799e7975d3d9000cec9bb9a3c001a3d4e
parent7d9e02e5a201fe997f98b6908daadd820d4a6593
Merge #415

415: use LSP file system operations r=matklad a=vemoo

implements #131

I've replaced `source_file_edits` and `file_system_edits` with `workspace_edit` because [`WorkspacEdit`](https://docs.rs/languageserver-types/0.53.1/languageserver_types/struct.WorkspaceEdit.html) can represent both.

I only use `document_changes` because `changes` cannot represent file system operations.

But if the client doesn't have the `workspace.workspaceEdit.resourceOperations` capability `WorkspaceEdit` cannot replace the current `FileSystemEdit`. Can we assume that the client will support it?

I also adapted the extension code to make use of the new response type, but only for vscode, i don't know if changes have to be made for the emacs part.

Co-authored-by: Bernardo <berublan@gmail.com>