@@ -166,33 +166,6 @@ export class ScopeTreeProvider implements TreeDataProvider<MyTreeItem> {
166
166
}
167
167
}
168
168
169
- private getIntersectionIcon (
170
- editor : TextEditor ,
171
- selection : Selection ,
172
- scopeType : ScopeType ,
173
- ) : string | undefined {
174
- const scopes = this . scopeProvider . provideScopeRangesForRange (
175
- editor ,
176
- scopeType ,
177
- selection ,
178
- ) ;
179
-
180
- for ( const scope of scopes ) {
181
- for ( const target of scope . targets ) {
182
- // Scope target exactly matches selection
183
- if ( target . contentRange . isRangeEqual ( selection ) ) {
184
- return "🎯" ;
185
- }
186
- // Scope target contains selection
187
- if ( target . contentRange . contains ( selection ) ) {
188
- return "📦" ;
189
- }
190
- }
191
- }
192
-
193
- return undefined ;
194
- }
195
-
196
169
private getScopeTypesWithSupport (
197
170
scopeSupport : ScopeSupport ,
198
171
) : ScopeSupportTreeItem [ ] {
@@ -251,6 +224,33 @@ export class ScopeTreeProvider implements TreeDataProvider<MyTreeItem> {
251
224
} ) ;
252
225
}
253
226
227
+ private getIntersectionIcon (
228
+ editor : TextEditor ,
229
+ selection : Selection ,
230
+ scopeType : ScopeType ,
231
+ ) : string | undefined {
232
+ const scopes = this . scopeProvider . provideScopeRangesForRange (
233
+ editor ,
234
+ scopeType ,
235
+ selection ,
236
+ ) ;
237
+
238
+ for ( const scope of scopes ) {
239
+ for ( const target of scope . targets ) {
240
+ // Scope target exactly matches selection
241
+ if ( target . contentRange . isRangeEqual ( selection ) ) {
242
+ return "🎯" ;
243
+ }
244
+ // Scope target contains selection
245
+ if ( target . contentRange . contains ( selection ) ) {
246
+ return "📦" ;
247
+ }
248
+ }
249
+ }
250
+
251
+ return undefined ;
252
+ }
253
+
254
254
dispose ( ) {
255
255
this . visibleDisposable ?. dispose ( ) ;
256
256
}
0 commit comments