示例#1
0
        private void ClearUndoHistory(ITextBuffer textBuffer)
        {
            IBasicUndoHistory basicUndoHistory;

            Assert.True(BasicUndoHistoryRegistry.TryGetBasicUndoHistory(textBuffer, out basicUndoHistory));
            basicUndoHistory.Clear();
        }
示例#2
0
        private void ClearHistory(ITextBuffer textBuffer)
        {
            IBasicUndoHistory basicUndoHistory;

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