VsixCommunity / Community.VisualStudio.Toolkit

Making it easier to write Visual Studio extensions
Other
256 stars 44 forks source link

Make sure only a single SameWordHighlighter is attached to a textbuffer. #444

Closed RobertvanderHulst closed 1 year ago

RobertvanderHulst commented 1 year ago

Each TextView will register its events itself with the tagger from the textbuffer and when the textview is closed then the events are unregistered again. The previous implementation was allocating way too many samewordhighlighters. Also changed the color for the same word highlighters in the example code.

madskristensen commented 1 year ago

Thanks