/// <inheritdoc/> public override IEnumerable <NewFolding> CreateNewFoldings(TextDocument document, out int firstErrorOffset) { Logger.LogM("CSharpPragmaRegionFoldingStrategy", ".CreateNewFoldings(TextDocument,out int)"); // clear existing foldings CommentBlockFoldingStrategy bfs = new CommentBlockFoldingStrategy(); List <NewFolding> newFoldings = new List <NewFolding>(bfs.CreateNewFoldings(document, out firstErrorOffset)); GetFoldingRanges(document, newFoldings); firstErrorOffset = lastDetectedError; return(newFoldings); }
public override IEnumerable <NewFolding> CreateNewFoldings(TextDocument document, out int firstErrorOffset) { // clear existing foldings CommentBlockFoldingStrategy bfs = new CommentBlockFoldingStrategy(); List <NewFolding> newFoldings = new List <NewFolding>(bfs.CreateNewFoldings(document, out firstErrorOffset)); newFoldings = GetFoldingRanges(document, newFoldings); firstErrorOffset = lastDetectedError; return(newFoldings); }