We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06197f0 commit b34f54cCopy full SHA for b34f54c
src/vs/workbench/services/remote/common/remoteExplorerService.ts
@@ -743,7 +743,7 @@ export class TunnelModel extends Disposable {
743
async close(host: string, port: number, reason: TunnelCloseReason): Promise<void> {
744
const key = makeAddress(host, port);
745
const oldTunnel = this.forwarded.get(key)!;
746
- if (reason === TunnelCloseReason.AutoForwardEnd) {
+ if ((reason === TunnelCloseReason.AutoForwardEnd) && oldTunnel && (oldTunnel.source.source === TunnelSource.Auto)) {
747
this.sessionCachedProperties.set(key, {
748
local: oldTunnel.localPort,
749
name: oldTunnel.name,
0 commit comments