feat(command_palette): sort commands by name

This commit is contained in:
Elian Doran 2025-07-28 17:17:11 +03:00
parent 18d11523a6
commit de8b7e9ebe
No known key found for this signature in database

View File

@ -169,7 +169,12 @@ class CommandRegistry {
}
getAllCommands(): CommandDefinition[] {
return Array.from(this.commands.values());
const commands = Array.from(this.commands.values());
// Sort commands by name
commands.sort((a, b) => a.name.localeCompare(b.name));
return commands;
}
searchCommands(query: string): CommandDefinition[] {