MCPcopy Index your code
hub / github.com/microsoft/vscode-js-debug / _startServer

Function _startServer

src/targets/node/nodeLauncherBase.ts:357–367  ·  view source on GitHub ↗
(telemetryReporter: ITelemetryReporter)

Source from the content-addressed store, hash-verified

355 }
356
357 protected async _startServer(telemetryReporter: ITelemetryReporter) {
358 const pipe = getRandomPipe();
359 const server = await new Promise<net.Server>((resolve, reject) => {
360 const s = net
361 .createServer(socket => this._startSession(socket, telemetryReporter))
362 .on('error', reject)
363 .listen(pipe, () => resolve(s));
364 });
365
366 return { pipe, server };
367 }
368
369 protected _stopServer() {
370 this.run?.server.close();

Callers

nothing calls this directly

Calls 5

getRandomPipeFunction · 0.90
resolveFunction · 0.85
listenMethod · 0.80
createServerMethod · 0.80
onMethod · 0.65

Tested by

no test coverage detected