File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
packages/cursorless-vscode/src Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -224,27 +224,27 @@ export class ScopeTreeProvider implements TreeDataProvider<MyTreeItem> {
224
224
supportLevel . spokenForm . isPrivate
225
225
) ,
226
226
)
227
- . map ( ( supportLevel ) => {
228
- const intersectionIcon = getIntersectionIcon ?. ( supportLevel . scopeType ) ;
229
- return new ScopeSupportTreeItem (
230
- supportLevel ,
231
- isEqual ( supportLevel . scopeType , this . scopeVisualizer . scopeType ) ,
232
- intersectionIcon ,
233
- ) ;
234
- } )
227
+ . map (
228
+ ( supportLevel ) =>
229
+ new ScopeSupportTreeItem (
230
+ supportLevel ,
231
+ isEqual ( supportLevel . scopeType , this . scopeVisualizer . scopeType ) ,
232
+ getIntersectionIcon ?. ( supportLevel . scopeType ) ,
233
+ ) ,
234
+ )
235
235
. sort ( ( a , b ) => {
236
- // Scopes with no spoken form are sorted to the bottom
237
236
if (
238
237
a . scopeTypeInfo . spokenForm . type !== b . scopeTypeInfo . spokenForm . type
239
238
) {
239
+ // Scopes with no spoken form are sorted to the bottom
240
240
return a . scopeTypeInfo . spokenForm . type === "error" ? 1 : - 1 ;
241
241
}
242
242
243
- // Then language-specific scopes are sorted to the top
244
243
if (
245
244
a . scopeTypeInfo . isLanguageSpecific !==
246
245
b . scopeTypeInfo . isLanguageSpecific
247
246
) {
247
+ // Then language-specific scopes are sorted to the top
248
248
return a . scopeTypeInfo . isLanguageSpecific ? - 1 : 1 ;
249
249
}
250
250
You can’t perform that action at this time.
0 commit comments