Skip to content

Commit

Permalink
cleanup config
Browse files Browse the repository at this point in the history
  • Loading branch information
matoous committed Feb 4, 2024
1 parent 9fb8502 commit 9be8135
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
5 changes: 0 additions & 5 deletions helix-core/src/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,6 @@ pub enum LanguageServerFeature {
Diagnostics,
RenameSymbol,
InlayHints,
// DocumentSynchronization
Save,
WillSave,
}

impl Display for LanguageServerFeature {
Expand All @@ -279,8 +276,6 @@ impl Display for LanguageServerFeature {
Diagnostics => "diagnostics",
RenameSymbol => "rename-symbol",
InlayHints => "inlay-hints",
Save => "save",
WillSave => "will-save",
};
write!(f, "{feature}",)
}
Expand Down
21 changes: 0 additions & 21 deletions helix-lsp/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9be8135

Please sign in to comment.