private void ClearUndoHistory(ITextBuffer textBuffer) { IBasicUndoHistory basicUndoHistory; Assert.True(BasicUndoHistoryRegistry.TryGetBasicUndoHistory(textBuffer, out basicUndoHistory)); basicUndoHistory.Clear(); }
private void ClearHistory(ITextBuffer textBuffer) { IBasicUndoHistory basicUndoHistory; if (BasicUndoHistoryRegistry.TryGetBasicUndoHistory(textBuffer, out basicUndoHistory)) { basicUndoHistory.Clear(); } }