feat(command_palette): add icons to all actions

This commit is contained in:
Elian Doran
2025-07-27 17:41:00 +03:00
parent d10bbdd7a7
commit 3517715aab
3 changed files with 105 additions and 5 deletions

View File

@@ -108,6 +108,11 @@ export interface ActionKeyboardShortcut {
description?: string;
defaultShortcuts?: string[];
effectiveShortcuts?: string[];
/**
* An icon describing the action.
* This is currently only used in the command palette.
*/
iconClass: string;
/**
* Scope here means on which element the keyboard shortcuts are attached - this means that for the shortcut to work,
* the focus has to be inside the element.