/// <inheritdoc/> public void Invoke(CancellationToken cancellationToken) { ThreadHelper.ThrowIfNotOnUIThread(); if (this.edits.Count != 0) { try { ITextSnapshot currentSnapshot = this.textBuffer.CurrentSnapshot; this.ApplyTextEdits(this.textBuffer, currentSnapshot); FixApplied?.Invoke(this, EventArgs.Empty); } catch (Exception ex) { Trace.WriteLine(ex); } } }
internal void RaiseFixApplied() { FixApplied?.Invoke(this, new EventArgs()); }