* Restart the language server by killing the process then spanwing a new one. * @param client language client * @param context extension context for adding disposables
(client: AngularLanguageClient)
| 39 | * @param context extension context for adding disposables |
| 40 | */ |
| 41 | function restartNgServer(client: AngularLanguageClient): Command { |
| 42 | return { |
| 43 | id: 'angular.restartNgServer', |
| 44 | isTextEditorCommand: false, |
| 45 | async execute() { |
| 46 | await client.stop(); |
| 47 | await client.start(); |
| 48 | }, |
| 49 | }; |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Open the current server log file in a new editor. |