summaryrefslogtreecommitdiff
path: root/support/texlab/src/folding/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/src/folding/mod.rs')
-rw-r--r--support/texlab/src/folding/mod.rs45
1 files changed, 0 insertions, 45 deletions
diff --git a/support/texlab/src/folding/mod.rs b/support/texlab/src/folding/mod.rs
deleted file mode 100644
index 448e3d26fc..0000000000
--- a/support/texlab/src/folding/mod.rs
+++ /dev/null
@@ -1,45 +0,0 @@
-mod bibtex_decl;
-mod latex_env;
-mod latex_section;
-
-use self::{
- bibtex_decl::BibtexDeclarationFoldingProvider, latex_env::LatexEnvironmentFoldingProvider,
- latex_section::LatexSectionFoldingProvider,
-};
-use crate::{
- feature::{ConcatProvider, FeatureProvider, FeatureRequest},
- protocol::{FoldingRange, FoldingRangeParams},
-};
-use async_trait::async_trait;
-
-pub struct FoldingProvider {
- provider: ConcatProvider<FoldingRangeParams, FoldingRange>,
-}
-
-impl FoldingProvider {
- pub fn new() -> Self {
- Self {
- provider: ConcatProvider::new(vec![
- Box::new(BibtexDeclarationFoldingProvider),
- Box::new(LatexEnvironmentFoldingProvider),
- Box::new(LatexSectionFoldingProvider),
- ]),
- }
- }
-}
-
-impl Default for FoldingProvider {
- fn default() -> Self {
- Self::new()
- }
-}
-
-#[async_trait]
-impl FeatureProvider for FoldingProvider {
- type Params = FoldingRangeParams;
- type Output = Vec<FoldingRange>;
-
- async fn execute<'a>(&'a self, req: &'a FeatureRequest<Self::Params>) -> Self::Output {
- self.provider.execute(req).await
- }
-}