@@ -3,6 +3,7 @@ import 'package:sass_api/sass_api.dart' as sass;
3
3
import 'package:sass_language_services/sass_language_services.dart' ;
4
4
import 'package:sass_language_services/src/features/document_highlights/document_highlights_feature.dart' ;
5
5
import 'package:sass_language_services/src/features/find_references/find_references_feature.dart' ;
6
+ import 'package:sass_language_services/src/features/folding_ranges/folding_ranges_feature.dart' ;
6
7
import 'package:sass_language_services/src/features/go_to_definition/go_to_definition_feature.dart' ;
7
8
import 'package:sass_language_services/src/features/rename/rename_feature.dart' ;
8
9
import 'package:sass_language_services/src/features/selection_ranges/selection_ranges_feature.dart' ;
@@ -23,8 +24,9 @@ class LanguageServices {
23
24
late final DocumentHighlightsFeature _documentHighlights;
24
25
late final DocumentLinksFeature _documentLinks;
25
26
late final DocumentSymbolsFeature _documentSymbols;
26
- late final GoToDefinitionFeature _goToDefinition ;
27
+ late final FoldingRangesFeature _foldingRanges ;
27
28
late final FindReferencesFeature _findReferences;
29
+ late final GoToDefinitionFeature _goToDefinition;
28
30
late final RenameFeature _rename;
29
31
late final SelectionRangesFeature _selectionRanges;
30
32
late final WorkspaceSymbolsFeature _workspaceSymbols;
@@ -36,8 +38,9 @@ class LanguageServices {
36
38
_documentHighlights = DocumentHighlightsFeature (ls: this );
37
39
_documentLinks = DocumentLinksFeature (ls: this );
38
40
_documentSymbols = DocumentSymbolsFeature (ls: this );
39
- _goToDefinition = GoToDefinitionFeature (ls: this );
40
41
_findReferences = FindReferencesFeature (ls: this );
42
+ _foldingRanges = FoldingRangesFeature (ls: this );
43
+ _goToDefinition = GoToDefinitionFeature (ls: this );
41
44
_rename = RenameFeature (ls: this );
42
45
_selectionRanges = SelectionRangesFeature (ls: this );
43
46
_workspaceSymbols = WorkspaceSymbolsFeature (ls: this );
@@ -70,6 +73,10 @@ class LanguageServices {
70
73
return _workspaceSymbols.findWorkspaceSymbols (query);
71
74
}
72
75
76
+ List <lsp.FoldingRange > getFoldingRanges (TextDocument document) {
77
+ return _foldingRanges.getFoldingRanges (document);
78
+ }
79
+
73
80
List <lsp.SelectionRange > getSelectionRanges (
74
81
TextDocument document, List <lsp.Position > positions) {
75
82
return _selectionRanges.getSelectionRanges (document, positions);
0 commit comments