Skip to content

Commit

Permalink
cleanup config
Browse files Browse the repository at this point in the history
  • Loading branch information
matoous committed Mar 31, 2024
1 parent e9c38e7 commit 873b3e7
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 @@ -331,9 +331,6 @@ pub enum LanguageServerFeature {
Diagnostics,
RenameSymbol,
InlayHints,
// DocumentSynchronization
Save,
WillSave,
}

impl Display for LanguageServerFeature {
Expand All @@ -357,8 +354,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 @@ -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(
Expand Down

0 comments on commit 873b3e7

Please sign in to comment.