From 21b66ba0686e745c7e32a4b79cc7edcc3b3fa349 Mon Sep 17 00:00:00 2001
From: Gokul Soumya <gokulps15@gmail.com>
Date: Sat, 9 Jul 2022 04:01:15 +0530
Subject: [PATCH] lsp: Add workspace/applyEdit to client capabilites (#3012)

The functionality already existed, but the capability wasn't being
reported correctly to the server:

https://github.com/helix-editor/helix/blob/230ba264bf78d9b4ecd42440f0cbb20529f9c235/helix-term/src/application.rs#L716-L728
---
 helix-lsp/src/client.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs
index aa833541..9187a61e 100644
--- a/helix-lsp/src/client.rs
+++ b/helix-lsp/src/client.rs
@@ -294,6 +294,7 @@ impl Client {
                         dynamic_registration: Some(false),
                     }),
                     workspace_folders: Some(true),
+                    apply_edit: Some(true),
                     ..Default::default()
                 }),
                 text_document: Some(lsp::TextDocumentClientCapabilities {