private void UpdateSecurityErrors(DevSkimErrorsSnapshot securityErrors) { // Tell our factory to snap to a new snapshot. this.Factory.UpdateErrors(securityErrors); LastSecurityErrors = securityErrors; // Tell the provider to mark all the sinks dirty (so, as a side-effect, they will start an update pass that will get the new snapshot // from the factory). _provider.UpdateAllSinks(); foreach (var tagger in _activeTaggers) { tagger.UpdateErrors(_currentSnapshot, securityErrors); } }
private void UpdateSecurityErrors(DevSkimErrorsSnapshot securityErrors) { // Tell our factory to snap to a new snapshot. this.Factory.UpdateErrors(securityErrors); LastSecurityErrors = securityErrors; // Tell the provider to mark all the sinks dirty (so, as a side-effect, they will start an update // pass that will get the new snapshot from the factory). SkimChecker skimChecker = new SkimChecker(this._provider, this._textView, this._buffer); skimChecker._isDisposed = true; _provider.UpdateAllSinks(skimChecker); foreach (var tagger in _activeTaggers) { tagger.UpdateErrors(_currentSnapshot, securityErrors); } }