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(