(registrations: CommandRegistration[], entry: CommandRegistration)
| 103 | } |
| 104 | |
| 105 | export function upsertCommandRegistration(registrations: CommandRegistration[], entry: CommandRegistration) { |
| 106 | if (entry.key === undefined) return [entry, ...registrations] |
| 107 | return [entry, ...registrations.filter((x) => x.key !== entry.key)] |
| 108 | } |
| 109 | |
| 110 | export function parseKeybind(config: string): Keybind[] { |
| 111 | if (!config || config === "none") return [] |
no outgoing calls
no test coverage detected