( client: AngularLanguageClient, context: vscode.ExtensionContext, )
| 223 | * @param context extension context for adding disposables |
| 224 | */ |
| 225 | export function registerCommands( |
| 226 | client: AngularLanguageClient, |
| 227 | context: vscode.ExtensionContext, |
| 228 | ): void { |
| 229 | const commands: Command[] = [ |
| 230 | restartNgServer(client), |
| 231 | openLogFile(client), |
| 232 | getTemplateTcb(client, context), |
| 233 | goToComponentWithTemplateFile(client), |
| 234 | goToTemplateForComponent(client), |
| 235 | openJsDocLinkCommand(), |
| 236 | applyCodeActionCommand(client), |
| 237 | ]; |
| 238 | |
| 239 | for (const command of commands) { |
| 240 | const disposable = command.isTextEditorCommand |
| 241 | ? vscode.commands.registerTextEditorCommand(command.id, command.execute) |
| 242 | : vscode.commands.registerCommand(command.id, command.execute); |
| 243 | context.subscriptions.push(disposable); |
| 244 | } |
| 245 | } |
no test coverage detected