From 9be81359c91b81894dfbcbf7fb1201a9f6937a95 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 680c7b00d7af4..24de1a338758a 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -253,9 +253,6 @@ pub enum LanguageServerFeature { Diagnostics, RenameSymbol, InlayHints, - // DocumentSynchronization - Save, - WillSave, } impl Display for LanguageServerFeature { @@ -279,8 +276,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 5ec1e790423d6..18cace4a2af77 100644 --- a/helix-lsp/src/client.rs +++ b/helix-lsp/src/client.rs @@ -299,27 +299,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(