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

Method createNewRootSession

src/sessionManager.ts:154–166  ·  view source on GitHub ↗
(
    debugSession: TSessionImpl,
    transport: IDapTransport | DapConnection,
  )

Source from the content-addressed store, hash-verified

152 }
153
154 public createNewRootSession(
155 debugSession: TSessionImpl,
156 transport: IDapTransport | DapConnection,
157 ) {
158 const root = new RootSession(
159 debugSession,
160 transport,
161 createTopLevelSessionContainer(this.globalContainer),
162 );
163 root.createBinder(this);
164 this._sessions.set(debugSession.id, root);
165 return root;
166 }
167
168 /**
169 * @inheritdoc

Callers 3

createRootDebugServerMethod · 0.80
createSessionMethod · 0.80

Calls 3

createBinderMethod · 0.95
setMethod · 0.65

Tested by

no test coverage detected