(options: RegisterCommandOptions)
| 63 | } |
| 64 | |
| 65 | export const registerCommands = (options: RegisterCommandOptions) => { |
| 66 | const { context } = options |
| 67 | |
| 68 | for (const [id, callback] of Object.entries(getCommandsMap(options))) { |
| 69 | const command = getCommand(id as CommandId) |
| 70 | context.subscriptions.push(vscode.commands.registerCommand(command, callback)) |
| 71 | } |
| 72 | |
| 73 | context.subscriptions.push(registerRipgrepDiagnosticCommand()) |
| 74 | } |
| 75 | |
| 76 | // `showRipgrepDiagnostic` is registered separately by |
| 77 | // `registerRipgrepDiagnosticCommand` (above), which owns the OutputChannel |
no test coverage detected