(ngClient: AngularLanguageClient)
| 208 | } |
| 209 | |
| 210 | function applyCodeActionCommand(ngClient: AngularLanguageClient): Command { |
| 211 | return { |
| 212 | id: 'angular.applyCompletionCodeAction', |
| 213 | isTextEditorCommand: false, |
| 214 | async execute(args: lsp.WorkspaceEdit[]) { |
| 215 | await ngClient.applyWorkspaceEdits(args); |
| 216 | }, |
| 217 | }; |
| 218 | } |
| 219 | |
| 220 | /** |
| 221 | * Register all supported vscode commands for the Angular extension. |