aboutsummaryrefslogtreecommitdiff
path: root/helix-lsp
diff options
context:
space:
mode:
authorPascal Kuthe2023-03-12 00:56:06 +0000
committerBlaž Hrastnik2023-03-16 06:45:49 +0000
commit7bf168dce0da10d60507589f9ffce8f73657e1e8 (patch)
tree62fa47b8ce2a32dca516f4f7002e4259277b130f /helix-lsp
parentb6a4927f00cba3d55a6bad93bfd93346a876ca74 (diff)
set WorkspaceEditCapabilities correctly
Diffstat (limited to 'helix-lsp')
-rw-r--r--helix-lsp/src/client.rs11
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 {