Commit db6f02f
fix(hub-ui): keep transient-context commands listed in shortcut settings
Pin `dockOpen`/`paletteOpen` when filtering commands for the shortcut
settings list, instead of evaluating `when` against the live context.
Those two flags are transient dispatch state (close-panel's
`!paletteOpen` exists to hand Escape to the palette, not to mark the
command unbindable), so filtering by their live values dropped
permanently bindable rows like Close Panel the moment the command
palette opened.
Ports vitejs/devtools#524 by @SaKaNa-Y to this fork's equivalent file
after the v0.9 migration.
Co-authored-by: SaKaNa-Y <15715093608@163.com>1 parent e6a2cab commit db6f02f
1 file changed
Lines changed: 11 additions & 4 deletions
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
29 | 36 | | |
30 | 37 | | |
31 | 38 | | |
| |||
0 commit comments