Skip to content

Commit

Permalink
fix: edge devtools incorrectly ask for local forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 committed Sep 20, 2023
1 parent 76ec0a3 commit b2abd3e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This changelog records changes to stable releases since 1.50.2. "TBA" changes he
## Nightly (only)

- feat: show class names of methods in call stack view ([#1770](https://github.com/microsoft/vscode-js-debug/issues/1770))
- fix: edge devtools incorrectly ask for local forwarding ([vscode#193110](https://github.com/microsoft/vscode/issues/193110))

## v1.82 (August 2023)

Expand Down
24 changes: 14 additions & 10 deletions src/ui/requestCDPProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,23 @@ export const registerRequestCDPProxy = (
}

try {
const tunneled = await tunnels.request(sessionId, {
label: 'Edge Devtools Tunnel',
remotePort: proxied.port,
});
if (vscode.env.remoteName !== undefined) {
const tunneled = await tunnels.request(sessionId, {
label: 'Edge Devtools Tunnel',
remotePort: proxied.port,
});

return {
host: tunneled.localAddress.host,
port: tunneled.localAddress.port,
path: proxied.path,
};
return {
host: tunneled.localAddress.host,
port: tunneled.localAddress.port,
path: proxied.path,
};
}
} catch {
return proxied;
// fall through
}

return proxied;
}),
);
};

0 comments on commit b2abd3e

Please sign in to comment.