Esempio n. 1
0
            public DiagnosticsTagSource(AbstractAggregatedDiagnosticsTagSource <TTag> owner)
            {
                _owner     = owner;
                _workQueue = new AsynchronousSerialWorkQueue(_owner.Listener);

                _lastDiagnostics = IntervalTree <Data> .Empty;
            }
Esempio n. 2
0
            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;
            }
Esempio n. 3
0
 protected sealed override void StoreTagSource(ITextView textViewOpt, ITextBuffer subjectBuffer, AbstractAggregatedDiagnosticsTagSource <TTag> tagSource)
 {
     subjectBuffer.Properties.AddProperty(UniqueKey, tagSource);
 }
Esempio n. 4
0
 internal sealed override bool TryRetrieveTagSource(ITextView textViewOpt, ITextBuffer subjectBuffer, out AbstractAggregatedDiagnosticsTagSource <TTag> tagSource)
 {
     return(subjectBuffer.Properties.TryGetProperty(UniqueKey, out tagSource));
 }
Esempio n. 5
0
 public ReadOnlyMode(AbstractAggregatedDiagnosticsTagSource <TTag> owner) : base(owner)
 {
     _source = new CancellationTokenSource();
     this.DiagnosticService.DiagnosticsUpdated += OnDiagnosticsUpdated;
 }
 public Mode(AbstractAggregatedDiagnosticsTagSource <TTag> owner)
 {
     this.Owner = owner;
 }