(cmd: Command)
| 975 | */ |
| 976 | function registerCommandPaletteEx(): void { |
| 977 | const runCommand = (cmd: Command): void => { |
| 978 | // Re-check `when` at invocation time so `:note-save` doesn't silently |
| 979 | // fire when nothing is selected, for example. |
| 980 | if (cmd.when && !cmd.when()) return |
| 981 | void cmd.run() |
| 982 | } |
| 983 | |
| 984 | const names = new Set<string>(MANUAL_EX_NAMES) |
| 985 | for (const cmd of buildCommands()) { |
no outgoing calls
no test coverage detected