Add default toast error handling for command execution (#1106)

* Error handling execute command

* Cleanup

* Add playwright test

* Mock i18n in jest test

* Reduce test func timeout
This commit is contained in:
Chenlei Hu
2024-10-04 16:28:08 -04:00
committed by GitHub
parent ebc71b0e46
commit 57a4cb9036
13 changed files with 126 additions and 44 deletions

View File

@@ -31,7 +31,7 @@ app.registerExtension({
const commandStore = useCommandStore()
const keybinding = keybindingStore.getKeybinding(keyCombo)
if (keybinding) {
await commandStore.getCommandFunction(keybinding.commandId)()
await commandStore.execute(keybinding.commandId)
event.preventDefault()
return
}