File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -120,22 +120,21 @@ private void UpdateWordAdornments(TextExtent word)
120120 List < SnapshotSpan > ? wordSpans = new ( ) ;
121121
122122 string ? text = word . Span . GetText ( ) ;
123- if ( ! _tagger . ShouldHighlight ( text ) )
124- return ;
125-
126- FindData findData = new ( text , word . Span . Snapshot )
123+ if ( _tagger . ShouldHighlight ( text ) )
127124 {
128- FindOptions = _tagger . FindOptions
129- } ;
125+ FindData findData = new ( text , word . Span . Snapshot )
126+ {
127+ FindOptions = _tagger . FindOptions
128+ } ;
130129
131- System . Collections . ObjectModel . Collection < SnapshotSpan > ? found = _textSearchService ! . FindAll ( findData ) ;
132- wordSpans . AddRange ( _tagger . FilterResults ( found ) ) ;
130+ System . Collections . ObjectModel . Collection < SnapshotSpan > ? found = _textSearchService ! . FindAll ( findData ) ;
131+ wordSpans . AddRange ( _tagger . FilterResults ( found ) ) ;
133132
134- if ( wordSpans . Count == 1 )
135- {
136- wordSpans . Clear ( ) ;
133+ if ( wordSpans . Count == 1 )
134+ {
135+ wordSpans . Clear ( ) ;
136+ }
137137 }
138-
139138 //If another change hasn't happened, do a real update
140139 if ( currentRequest == _requestedPoint )
141140 {
You can’t perform that action at this time.
0 commit comments