Skip to content

Commit eabd41a

Browse files
jpoehneltCopilot
andauthored
fix: use comparator
Co-authored-by: Copilot <[email protected]>
1 parent a296229 commit eabd41a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scopes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export function getScopeMarkdown(id: string): string {
217217
});
218218
}
219219

220-
suggestions.sort();
220+
suggestions.sort((a, b) => b.sharedPrefix.length - a.sharedPrefix.length);
221221

222222
if (suggestions.length > 0) {
223223
content.push("Consider these scopes:");

0 commit comments

Comments
 (0)