Ejemplo n.º 1
0
        private void ClearUndoHistory(ITextBuffer textBuffer)
        {
            IBasicUndoHistory basicUndoHistory;

            Assert.True(BasicUndoHistoryRegistry.TryGetBasicUndoHistory(textBuffer, out basicUndoHistory));
            basicUndoHistory.Clear();
        }
Ejemplo n.º 2
0
        private void ClearHistory(ITextBuffer textBuffer)
        {
            IBasicUndoHistory basicUndoHistory;

            if (BasicUndoHistoryRegistry.TryGetBasicUndoHistory(textBuffer, out basicUndoHistory))
            {
                basicUndoHistory.Clear();
            }
        }