1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:58:12 +00:00

LibSyntax+LibGUI: Let syntax highlighters assign folding regions

This commit is contained in:
Sam Atkins 2023-02-23 15:33:48 +00:00 committed by Andreas Kling
parent 92b128e20a
commit d169af117d
4 changed files with 19 additions and 0 deletions

View file

@ -2483,4 +2483,10 @@ void TextEditor::on_search_results(GUI::TextRange current, Vector<GUI::TextRange
update();
}
void TextEditor::highlighter_did_set_folding_regions(Vector<GUI::TextDocumentFoldingRegion> folding_regions)
{
document().set_folding_regions(move(folding_regions));
recompute_all_visual_lines();
}
}