Skip to content

Commit

Permalink
fix: typeerror for users of vsDebugServer.bundle.js
Browse files Browse the repository at this point in the history
Fixes #1502
  • Loading branch information
connor4312 committed Jan 30, 2023
1 parent cf08889 commit 314baf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/vsDebugServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class VsDebugServer implements ISessionLauncher<VSDebugSession> {
}

async launchRoot(deferredConnection: IDeferred<DapConnection>, 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());
}
Expand Down

0 comments on commit 314baf8

Please sign in to comment.