private void Storage_OnStoreChange(object sender, StoreChangeEventArgs e) { if (e.ChangedFileType.IsSet(ChangedFileTypeFlag.CSharp)) { if (TagsChanged != null) { var span = new SnapshotSpan(_buffer.CurrentSnapshot, 0, _buffer.CurrentSnapshot.Length); _validator.OnChange(span); _validator.AddToErrorList(); TagsChanged.Invoke(sender, new SnapshotSpanEventArgs(span)); } } }
public static void TriggerStoreChange(object sender, StoreChangeEventArgs args) { OnStoreChange?.Invoke(sender, args); }