public ITextEdit CreateEdit() { if (EditInProgress) { throw new InvalidOperationException(); } _edit = new MockTextEdit((MockTextSnapshot)CurrentSnapshot); return _edit; }
public ITextEdit CreateEdit() { if (EditInProgress) { throw new InvalidOperationException(); } _edit = new MockTextEdit((MockTextSnapshot)CurrentSnapshot); return(_edit); }
internal void EditApplied(ITextSnapshot previous) { _edit = null; var evt = Changed; if (evt != null) { evt(this, new TextContentChangedEventArgs(previous, _snapshot, new EditOptions(), null)); } }
internal void EditApplied(ITextSnapshot previous) { _edit = null; var e = new TextContentChangedEventArgs(previous, _snapshot, new EditOptions(), null); foreach (var evt in new[] { ChangedHighPriority, Changed, ChangedLowPriority }) { if (evt != null) { evt(this, e); } } }
internal void EditApplied() { _edit = null; }