/// <summary> /// Create <see cref="NewFolding"/>s for the specified document and updates the folding manager with them. /// </summary> public void UpdateFoldings(FoldingManager manager, TextDocument document) { var foldings = CreateNewFoldings(document, out var firstErrorOffset); manager.UpdateFoldings(foldings, firstErrorOffset); }