diff options
author | wojciechkepka | 2021-06-18 03:44:01 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-18 08:42:38 +0000 |
commit | d095ec15d4672ec5fb3b1f4a85282db31f40c6ea (patch) | |
tree | 23eaa65c264f35a9de31695f94f5edf358c92a84 | |
parent | 612511dc9859cb232b6c84b8d50461f5d181c9dc (diff) |
Reenable `work_done_progress` capability
-rw-r--r-- | helix-lsp/src/client.rs | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs index e14d0197..245eb854 100644 --- a/helix-lsp/src/client.rs +++ b/helix-lsp/src/client.rs @@ -185,25 +185,25 @@ impl Client { let server_tx = self.server_tx.clone(); async move { - let output = match result { - Ok(result) => Output::Success(Success { - jsonrpc: Some(Version::V2), - id, - result, - }), - Err(error) => Output::Failure(Failure { - jsonrpc: Some(Version::V2), - id, - error, - }), - }; + let output = match result { + Ok(result) => Output::Success(Success { + jsonrpc: Some(Version::V2), + id, + result, + }), + Err(error) => Output::Failure(Failure { + jsonrpc: Some(Version::V2), + id, + error, + }), + }; server_tx - .send(Payload::Response(output)) - .map_err(|e| Error::Other(e.into()))?; + .send(Payload::Response(output)) + .map_err(|e| Error::Other(e.into()))?; - Ok(()) - } + Ok(()) + } } // ------------------------------------------------------------------------------------------- @@ -243,8 +243,7 @@ impl Client { ..Default::default() }), window: Some(lsp::WindowClientCapabilities { - // TODO: temporarily disabled until we implement handling for window/workDoneProgress/create - // work_done_progress: Some(true), + work_done_progress: Some(true), ..Default::default() }), ..Default::default() |