Skip to content

Commit d9d196f

Browse files
committed
move unspeakable to end
1 parent 75a871b commit d9d196f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/cursorless-vscode/src/ScopeSupportTreeProvider.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ export class ScopeSupportTreeProvider
9898
.filter((supportLevel) => supportLevel.support === scopeSupport)
9999
.map((supportLevel) => new ScopeSupportTreeItem(supportLevel))
100100
.sort((a, b) => {
101+
if (
102+
a.scopeTypeInfo.spokenForm.type !== b.scopeTypeInfo.spokenForm.type
103+
) {
104+
return a.scopeTypeInfo.spokenForm.type === "error" ? 1 : -1;
105+
}
106+
101107
if (
102108
a.scopeTypeInfo.isLanguageSpecific !==
103109
b.scopeTypeInfo.isLanguageSpecific

0 commit comments

Comments
 (0)