public DiagnosticsTagSource(AbstractAggregatedDiagnosticsTagSource <TTag> owner) { _owner = owner; _workQueue = new AsynchronousSerialWorkQueue(_owner.Listener); _lastDiagnostics = IntervalTree <Data> .Empty; }
public InteractiveMode(AbstractAggregatedDiagnosticsTagSource <TTag> owner) : base(owner) { _lastDocumentId = null; _called = false; _tagSources = new ConcurrentDictionary <object, DiagnosticsTagSource>(concurrencyLevel: 2, capacity: 10); this.DiagnosticService.DiagnosticsUpdated += OnDiagnosticsUpdated; _workspaceRegistration = Workspace.GetWorkspaceRegistration(this.SubjectBuffer.AsTextContainer()); _workspaceRegistration.WorkspaceChanged += OnWorkspaceChanged; }
protected sealed override void StoreTagSource(ITextView textViewOpt, ITextBuffer subjectBuffer, AbstractAggregatedDiagnosticsTagSource <TTag> tagSource) { subjectBuffer.Properties.AddProperty(UniqueKey, tagSource); }
internal sealed override bool TryRetrieveTagSource(ITextView textViewOpt, ITextBuffer subjectBuffer, out AbstractAggregatedDiagnosticsTagSource <TTag> tagSource) { return(subjectBuffer.Properties.TryGetProperty(UniqueKey, out tagSource)); }
public ReadOnlyMode(AbstractAggregatedDiagnosticsTagSource <TTag> owner) : base(owner) { _source = new CancellationTokenSource(); this.DiagnosticService.DiagnosticsUpdated += OnDiagnosticsUpdated; }
public Mode(AbstractAggregatedDiagnosticsTagSource <TTag> owner) { this.Owner = owner; }