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

Method constructor

src/vsDebugServer.ts:57–73  ·  view source on GitHub ↗
(host?: string, inputStream?: Readable, outputStream?: Writable)

Source from the content-addressed store, hash-verified

55 private readonly sessionServer: ServerSessionManager<VSDebugSession>;
56
57 constructor(host?: string, inputStream?: Readable, outputStream?: Writable) {
58 const services = createGlobalContainer({ storagePath, isVsCode: false });
59 this.sessionServer = new ServerSessionManager(services, this, host);
60
61 const deferredConnection: IDeferred<DapConnection> = getDeferred();
62 const rootSession = new VSDebugSession(
63 'root',
64 l10n.t('JavaScript debug adapter'),
65 deferredConnection.promise,
66 { type: DebugType.Chrome, name: 'root', request: 'launch' },
67 );
68 if (inputStream && outputStream) {
69 this.launchRootFromExisting(deferredConnection, rootSession, inputStream, outputStream);
70 } else {
71 this.launchRoot(deferredConnection, rootSession);
72 }
73 }
74
75 private launchRootFromExisting(
76 deferredConnection: IDeferred<DapConnection>,

Callers

nothing calls this directly

Calls 4

launchRootMethod · 0.95
createGlobalContainerFunction · 0.90
getDeferredFunction · 0.90

Tested by

no test coverage detected