diff options
author | Pascal Kuthe | 2023-03-12 00:56:06 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-03-16 06:45:49 +0000 |
commit | 7bf168dce0da10d60507589f9ffce8f73657e1e8 (patch) | |
tree | 62fa47b8ce2a32dca516f4f7002e4259277b130f | |
parent | b6a4927f00cba3d55a6bad93bfd93346a876ca74 (diff) |
set WorkspaceEditCapabilities correctly
-rw-r--r-- | helix-lsp/src/client.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs index f6bf5e39..f93e5826 100644 --- a/helix-lsp/src/client.rs +++ b/helix-lsp/src/client.rs @@ -318,6 +318,17 @@ impl Client { inlay_hint: Some(lsp::InlayHintWorkspaceClientCapabilities { refresh_support: Some(false), }), + workspace_edit: Some(lsp::WorkspaceEditClientCapabilities { + document_changes: Some(true), + resource_operations: Some(vec![ + lsp::ResourceOperationKind::Create, + lsp::ResourceOperationKind::Rename, + lsp::ResourceOperationKind::Delete, + ]), + failure_handling: Some(lsp::FailureHandlingKind::Abort), + normalizes_line_endings: Some(false), + change_annotation_support: None, + }), ..Default::default() }), text_document: Some(lsp::TextDocumentClientCapabilities { |