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

Function startServer

vscode-ng-language-service/client/src/extension.ts:19–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 context.subscriptions.push(client);
18
19 const startServer = async () => {
20 registerCommands(client, context);
21
22 // Restart the server on configuration changes that affect startup/session state.
23 const disposable = vscode.workspace.onDidChangeConfiguration(
24 async (e: vscode.ConfigurationChangeEvent) => {
25 if (!shouldRestartOnConfigurationChange(e)) {
26 return;
27 }
28 await client.stop();
29 await client.start();
30 },
31 );
32 context.subscriptions.push(disposable);
33
34 await client.start();
35 };
36
37 // If the workspace is untrusted, operate in limited mode:
38 // Do NOT start the language server or register commands.

Callers 1

activateFunction · 0.85

Calls 5

registerCommandsFunction · 0.90
stopMethod · 0.80
startMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected