merge_crystal_branches(lines :
Array(
String), ranges :
Array(
Tui::TextEditor::FoldRange)) :
Array(
Tui::TextEditor::FoldRange)
Adamas/Crystal LSP folds the whole if…end, but not else/elsif/when.
Keep the closer (end / next branch) visible.
Source