Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Text tagger (TextMarkerTag, IViewTaggerProvider etc) - Is there a way to force CreateTagger to be called again?

$
0
0

I'm creating a text tagger that can be enabled/disabled via a toolbar button. IViewTaggerProvider.CreateTagger gets called automatically when a text document is opened. However if I return null here since the tagger is currently disabled, how can I force IViewTaggerProvider.CreateTagger to be called again when the user enabled the tagger? Maybe there is some sort of refresh method I can call?

Alternatively I can always create the tagger and disable it inside the tagger functionality (for instance by returning no items in ITagger.GetTags), but this seems wasteful as VS is already slow enough.



Viewing all articles
Browse latest Browse all 4410

Trending Articles