From 873b3e7b9f664daeff44eee2c08e90ca39533b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Dzivjak?= Date: Fri, 2 Feb 2024 13:26:49 +0000 Subject: [PATCH] cleanup config --- helix-core/src/syntax.rs | 5 ----- helix-lsp/src/client.rs | 21 --------------------- 2 files changed, 26 deletions(-) diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index 310f97979d71..78abc0b0a740 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -331,9 +331,6 @@ pub enum LanguageServerFeature { Diagnostics, RenameSymbol, InlayHints, - // DocumentSynchronization - Save, - WillSave, } impl Display for LanguageServerFeature { @@ -357,8 +354,6 @@ impl Display for LanguageServerFeature { Diagnostics => "diagnostics", RenameSymbol => "rename-symbol", InlayHints => "inlay-hints", - Save => "save", - WillSave => "will-save", }; write!(f, "{feature}",) } diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs index 49259cc8483d..93008f3c6e0f 100644 --- a/helix-lsp/src/client.rs +++ b/helix-lsp/src/client.rs @@ -282,27 +282,6 @@ impl Client { capabilities.document_formatting_provider, Some(OneOf::Left(true) | OneOf::Right(_)) ), - LanguageServerFeature::Save => matches!( - capabilities.text_document_sync, - Some(TextDocumentSyncCapability::Options( - TextDocumentSyncOptions { - save: Some( - TextDocumentSyncSaveOptions::Supported(true) - | TextDocumentSyncSaveOptions::SaveOptions(SaveOptions { .. }) - ), - .. - } - )) - ), - LanguageServerFeature::WillSave => matches!( - capabilities.text_document_sync, - Some(TextDocumentSyncCapability::Options( - TextDocumentSyncOptions { - will_save: Some(true), - .. - } - )) - ), LanguageServerFeature::GotoDeclaration => matches!( capabilities.declaration_provider, Some(