Skip to content

Commit f1a2f7f

Browse files
Docs
1 parent 4a424c1 commit f1a2f7f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/EditorFeatures/Core.Wpf/InlineHints/InlineHintsTagger.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ namespace Microsoft.CodeAnalysis.Editor.InlineHints
2929
/// </summary>
3030
internal sealed class InlineHintsTagger : EfficientTagger<IntraTextAdornmentTag>
3131
{
32+
/// <summary>
33+
/// On demand mapping of data tags to adornment tags created for them. As long as the data tags are alive,
34+
/// we'll keep the corresponding adornment tags alive <em>once it has been created</em>. Note: the underlying
35+
/// tagger is a view tagger, which will toss tags once they get far enough out of view. So we will only create
36+
/// and cache as many adornment tags as what the underlying tagger thinks there should be tags for <em>and</em>
37+
/// which have been requested by the view tagger.
38+
/// </summary>
3239
private static ConditionalWeakTable<TagSpan<InlineHintDataTag>, TagSpan<IntraTextAdornmentTag>> s_dataTagToAdornmentTag = new();
3340

3441
private readonly EfficientTagger<InlineHintDataTag> _underlyingTagger;

0 commit comments

Comments
 (0)