diff --git a/CHANGELOG.md b/CHANGELOG.md index a38967a3f..94566b040 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ This changelog records changes to stable releases since 1.50.2. "TBA" changes he ## Nightly (only) -Nothing, yet +- fix: typeerror for users of vsDebugServer.bundle.js ([#1502](https://github.com/microsoft/vscode-js-debug/issues/1502)) ## v1.75 (January 2023) diff --git a/src/vsDebugServer.ts b/src/vsDebugServer.ts index 638bd2d22..d34f835c3 100644 --- a/src/vsDebugServer.ts +++ b/src/vsDebugServer.ts @@ -90,7 +90,7 @@ class VsDebugServer implements ISessionLauncher { } async launchRoot(deferredConnection: IDeferred, session: VSDebugSession) { - const result = await this.sessionServer.createRootDebugServer(session, debugServerPort); + const result = await this.sessionServer.createRootDebugServer(session, debugServerPort ?? 0); result.connectionPromise.then(x => deferredConnection.resolve(x)); console.log((result.server.address() as net.AddressInfo).port.toString()); }