1 write to _dataSource
Microsoft.CodeAnalysis.EditorFeatures (1)
Tagging\AbstractAsynchronousTaggerProvider.TagSource.cs (1)
154
_dataSource
= dataSource;
62 references to _dataSource
Microsoft.CodeAnalysis.EditorFeatures (62)
Tagging\AbstractAsynchronousTaggerProvider.TagSource.cs (27)
176
if (
_dataSource
.AddedTagNotificationDelay == TaggerDelay.NearImmediate)
185
_dataSource
.AddedTagNotificationDelay.ComputeTimeDelay(),
200
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
217
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
220
_dataSource
.VisibilityTracker?.RegisterForVisibilityChanges(subjectBuffer, _onVisibilityChanged);
224
if (
_dataSource
.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.RemoveAllTags) ||
225
_dataSource
.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.RemoveTagsThatIntersectEdits))
230
if (
_dataSource
.CaretChangeBehavior.HasFlag(TaggerCaretChangeBehavior.RemoveAllTagsOnCaretMoveOutsideOfTag))
235
nameof(
_dataSource
.CaretChangeBehavior) + " can only be specified for an " + nameof(IViewTaggerProvider));
251
_dataSource
.RemoveTagSource(_textView, _subjectBuffer);
261
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
266
if (
_dataSource
.CaretChangeBehavior.HasFlag(TaggerCaretChangeBehavior.RemoveAllTagsOnCaretMoveOutsideOfTag))
272
if (
_dataSource
.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.RemoveAllTags) ||
273
_dataSource
.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.RemoveTagsThatIntersectEdits))
280
_dataSource
.VisibilityTracker?.UnregisterForVisibilityChanges(_subjectBuffer, _onVisibilityChanged);
285
=>
_dataSource
.VisibilityTracker == null ||
_dataSource
.VisibilityTracker.IsVisible(_subjectBuffer);
289
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
300
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
321
Contract.ThrowIfTrue(
_dataSource
.Options.Any(o => o is not Option2<bool> and not PerLanguageOption2<bool>), "All options must be Option2<bool> or PerLanguageOption2<bool>");
323
var eventSource =
_dataSource
.CreateEventSource(_textView, _subjectBuffer);
327
if (
_dataSource
.Options.IsEmpty &&
_dataSource
.FeatureOptions.IsEmpty)
334
TaggerEventSources.OnGlobalOptionChanged(
_dataSource
.GlobalOptions, option =>
335
_dataSource
.Options.Contains(option) ||
_dataSource
.FeatureOptions.Contains(option)));
340
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
Tagging\AbstractAsynchronousTaggerProvider.TagSource_IEqualityComparer.cs (1)
23
return x.Span == y.Span &&
_dataSource
.TagEquals(x.Tag, y.Tag);
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (32)
36
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
38
Debug.Assert(
_dataSource
.CaretChangeBehavior.HasFlag(TaggerCaretChangeBehavior.RemoveAllTagsOnCaretMoveOutsideOfTag));
40
var caret =
_dataSource
.GetCaretPoint(_textView, _subjectBuffer);
54
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
70
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
76
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
78
if (
_dataSource
.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.RemoveAllTags))
85
if (
_dataSource
.TextChangeBehavior.HasFlag(TaggerTextChangeBehavior.RemoveTagsThatIntersectEdits))
135
@this.
_dataSource
.SpanTrackingMode,
178
EnqueueWork(highPriority,
_dataSource
.SupportsFrozenPartialSemantics, nonFrozenComputationToken: null);
184
_dataSource
.CancelOnNewWork);
199
if (!frozenPartialSemantics &&
_dataSource
.SupportsFrozenPartialSemantics)
297
var valueOpt = await
_dataSource
.MainThreadManager.PerformWorkOnMainThreadAsync(
324
await
_dataSource
.VisibilityTracker.DelayWhileNonVisibleAsync(
325
_dataSource
.ThreadingContext,
_dataSource
.AsyncListener, _subjectBuffer, DelayTimeSpan.NonFocus, cancellationToken).NoThrowAwaitable(captureContext: true);
396
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
405
var caretPosition =
_dataSource
.GetCaretPoint(_textView, _subjectBuffer);
408
if (!
_dataSource
.TryAddSpansToTag(_textView, _subjectBuffer, ref spansToTag.AsRef()))
529
return new TagSpanIntervalTree<TTag>(newTags_safeToMutate[0].Span.Snapshot,
_dataSource
.SpanTrackingMode, newTags_safeToMutate);
547
snapshot,
_dataSource
.SpanTrackingMode, newTags_safeToMutate);
569
snapshot,
_dataSource
.SpanTrackingMode, newTags_safeToMutate);
581
foreach (var option in
_dataSource
.Options)
583
if (option is Option2<bool> option2 && !
_dataSource
.GlobalOptions.GetOption(option2))
587
(languageName == null || !
_dataSource
.GlobalOptions.GetOption(perLanguageOption, languageName)))
593
await
_dataSource
.ProduceTagsAsync(context, cancellationToken).ConfigureAwait(false);
691
if (!
_dataSource
.TagEquals(latest.Value.Tag, previous.Value.Tag))
724
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
736
_dataSource
.ComputeInitialTagsSynchronously(buffer) &&
740
tagTrees =
_dataSource
.ThreadingContext.JoinableTaskFactory.Run(() =>
741
this.RecomputeTagsAsync(highPriority: true,
_dataSource
.SupportsFrozenPartialSemantics, calledFromJtfRun: true, _disposalTokenSource.Token));
756
_dataSource
.ThreadingContext.ThrowIfNotOnUIThread();
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ReferenceCounting.cs (1)
26
{
_dataSource
.StackTrace}
Tagging\AbstractAsynchronousTaggerProvider.TagSource_TagsChanged.cs (1)
63
_dataSource
.BeforeTagsChanged(snapshot);