提交 ac719087 编写于 作者: M Matt Bierner

Make sure we don't go into a redirect loop when using port mappings with same...

Make sure we don't go into a redirect loop when using port mappings with same source and destination ports
上级 201a9c8e
......@@ -34,6 +34,9 @@ export class WebviewPortMappingManager extends Disposable {
if (extensionLocation && extensionLocation.scheme === REMOTE_HOST_SCHEME) {
const tunnel = await this.getOrCreateTunnel(mapping.extensionHostPort);
if (tunnel) {
if (tunnel.tunnelLocalPort === mapping.webviewPort) {
return undefined;
}
return encodeURI(uri.with({
authority: `127.0.0.1:${tunnel.tunnelLocalPort}`,
}).toString(true));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册