@@ -15,27 +15,21 @@ public class TokenTag : ITag
1515 /// <summary>
1616 /// Creates a new instance.
1717 /// </summary>
18- public TokenTag ( object tokenType , bool supportOutlining , Func < SnapshotPoint , Task < object > > ? getTooltipAsync , params ErrorListItem [ ] errors )
18+ public TokenTag ( object tokenType , bool supportOutlining , bool hasTooltip , params ErrorListItem [ ] errors )
1919 {
2020 TokenType = tokenType ;
2121 SupportOutlining = supportOutlining ;
22- GetTooltipAsync = getTooltipAsync ;
22+ HasTooltip = hasTooltip ;
2323 Errors = errors ;
2424 }
2525
2626 /// <summary>
2727 /// Creates a new instance.
2828 /// </summary>
2929 public TokenTag ( object tokenType )
30- : this ( tokenType , false , null )
30+ : this ( tokenType , false , false )
3131 { }
3232
33- /// <summary>
34- /// Creates a new instance.
35- /// </summary>
36- public TokenTag ( object tokenType , bool supportOutlining )
37- : this ( tokenType , supportOutlining , null )
38- { }
3933
4034 /// <summary>
4135 /// This can be any object you use to differentiate the type of token tags. It's used for classification.
@@ -45,12 +39,12 @@ public TokenTag(object tokenType, bool supportOutlining)
4539 /// <summary>
4640 /// Any tags supporting outlining will automatically get IStructure tags added.
4741 /// </summary>
48- public virtual bool SupportOutlining { get ; set ; }
42+ public virtual bool SupportOutlining { get ; }
4943
5044 /// <summary>
5145 /// Specify if the tag has any tooltip to show. When true, the GetTooltipAsync method will be called.
5246 /// </summary>
53- public virtual bool HasTooltip { get ; set ; }
47+ public virtual bool HasTooltip { get ; }
5448
5549 /// <summary>
5650 /// A list of errors associated with the tag.
0 commit comments