refreshIndentFolds method

void refreshIndentFolds({
  1. int tabWidth = 4,
})

Recomputes indent folds and keeps collapse state that still applies.

Implementation

void refreshIndentFolds({int tabWidth = 4}) {
  folds = folds.retain(
    computeIndentFolds([
      for (var i = 0; i < lineCount; i++) _document.lineAt(i),
    ], tabWidth: tabWidth),
  );
  if (!_moveHiddenCursorsToFoldHeaders()) _syncCoreState();
}