mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
[html] adopt folding APIs
This commit is contained in:
@@ -77,7 +77,7 @@ export function getCSSMode(documentRegions: LanguageModelCache<HTMLDocumentRegio
|
||||
},
|
||||
getFoldingRanges(document: TextDocument, range: Range): FoldingRange[] {
|
||||
let embedded = embeddedCSSDocuments.get(document);
|
||||
let ranges = cssLanguageService.getFoldingRanges(embedded, {}).ranges;
|
||||
let ranges = cssLanguageService.getFoldingRanges(embedded, {});
|
||||
return ranges.filter(r => r.startLine >= range.start.line && r.endLine < range.end.line);
|
||||
},
|
||||
onDocumentRemoved(document: TextDocument) {
|
||||
|
||||
Reference in New Issue
Block a user