From ca0d8413f93399ba17f679a3ae79c6683baa98f5 Mon Sep 17 00:00:00 2001 From: Sofus Addington Date: Thu, 22 Aug 2024 21:30:36 +0200 Subject: [PATCH] minor improvement to get capability --- helix-lsp/src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs index 00ae8f480..e868effc6 100644 --- a/helix-lsp/src/client.rs +++ b/helix-lsp/src/client.rs @@ -1236,7 +1236,7 @@ impl Client { text_document: lsp::TextDocumentIdentifier, previous_result_id: Option, ) -> Option>> { - let capabilities = self.capabilities.get().unwrap(); + let capabilities = self.capabilities(); // Return early if the server does not support pull diagnostic. let identifier = match capabilities.diagnostic_provider.as_ref()? {