Skip to content

Commit fd3512d

Browse files
Clean up
1 parent 9317b9b commit fd3512d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/cursorless-vscode/src/ScopeTreeProvider.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -224,27 +224,27 @@ export class ScopeTreeProvider implements TreeDataProvider<MyTreeItem> {
224224
supportLevel.spokenForm.isPrivate
225225
),
226226
)
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+
)
235235
.sort((a, b) => {
236-
// Scopes with no spoken form are sorted to the bottom
237236
if (
238237
a.scopeTypeInfo.spokenForm.type !== b.scopeTypeInfo.spokenForm.type
239238
) {
239+
// Scopes with no spoken form are sorted to the bottom
240240
return a.scopeTypeInfo.spokenForm.type === "error" ? 1 : -1;
241241
}
242242

243-
// Then language-specific scopes are sorted to the top
244243
if (
245244
a.scopeTypeInfo.isLanguageSpecific !==
246245
b.scopeTypeInfo.isLanguageSpecific
247246
) {
247+
// Then language-specific scopes are sorted to the top
248248
return a.scopeTypeInfo.isLanguageSpecific ? -1 : 1;
249249
}
250250

0 commit comments

Comments
 (0)