From 7bf168dce0da10d60507589f9ffce8f73657e1e8 Mon Sep 17 00:00:00 2001 From: Pascal Kuthe Date: Sun, 12 Mar 2023 01:56:06 +0100 Subject: [PATCH] set WorkspaceEditCapabilities correctly --- helix-lsp/src/client.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs index f6bf5e398f7c..f93e582639a1 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 {