/// <inheritdoc/> public override int GetFirstInterestedOffset(int startOffset) { if (foldingManager != null) { foreach (FoldingSection fs in foldingManager.GetFoldingsContaining(startOffset)) { // Test whether we're currently within a folded folding (that didn't just end). // If so, create the fold marker immediately. // This is necessary if the actual beginning of the fold marker got skipped due to another VisualElementGenerator. if (fs.IsFolded && fs.EndOffset > startOffset) { //return startOffset; } } return(foldingManager.GetNextFoldedFoldingStart(startOffset)); } else { return(-1); } }