MCPcopy
hub / github.com/microsoft/vscode-js-debug / launchRootFromExisting

Method launchRootFromExisting

src/vsDebugServer.ts:75–87  ·  view source on GitHub ↗
(
    deferredConnection: IDeferred<DapConnection>,
    session: VSDebugSession,
    inputStream: Readable,
    outputStream: Writable,
  )

Source from the content-addressed store, hash-verified

73 }
74
75 private launchRootFromExisting(
76 deferredConnection: IDeferred<DapConnection>,
77 session: VSDebugSession,
78 inputStream: Readable,
79 outputStream: Writable,
80 ) {
81 const newSession = this.sessionServer.createRootDebugSessionFromStreams(
82 session,
83 inputStream,
84 outputStream,
85 );
86 deferredConnection.resolve(newSession.connection);
87 }
88
89 async launchRoot(deferredConnection: IDeferred<DapConnection>, session: VSDebugSession) {
90 const result = await this.sessionServer.createRootDebugServer(session, debugServerPort ?? 0);

Callers 1

constructorMethod · 0.95

Calls 2

resolveMethod · 0.80

Tested by

no test coverage detected