MCPcopy Create free account
hub / github.com/angular/angular / restartNgServer

Function restartNgServer

vscode-ng-language-service/client/src/commands.ts:41–50  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

39 * @param context extension context for adding disposables
40 */
41function 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.

Callers 1

registerCommandsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected