mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-12 01:28:01 +01:00
Show remote host in tunnel view items when not localhost
Part of #88060
This commit is contained in:
@@ -356,10 +356,14 @@ class TunnelItem implements ITunnelItem {
|
||||
get label(): string {
|
||||
if (this.name) {
|
||||
return nls.localize('remote.tunnelsView.forwardedPortLabel0', "{0}", this.name);
|
||||
} else if (this.localAddress && (this.remoteHost !== 'localhost')) {
|
||||
return nls.localize('remote.tunnelsView.forwardedPortLabel2', "{0}:{1} to {2}", this.remoteHost, this.remotePort, this.localAddress);
|
||||
} else if (this.localAddress) {
|
||||
return nls.localize('remote.tunnelsView.forwardedPortLabel2', "{0} to {1}", this.remotePort, this.localAddress);
|
||||
return nls.localize('remote.tunnelsView.forwardedPortLabel3', "{0} to {1}", this.remotePort, this.localAddress);
|
||||
} else if (this.remoteHost !== 'localhost') {
|
||||
return nls.localize('remote.tunnelsView.forwardedPortLabel4', "{0}:{1} not forwarded", this.remoteHost, this.remotePort);
|
||||
} else {
|
||||
return nls.localize('remote.tunnelsView.forwardedPortLabel3', "{0} not forwarded", this.remotePort);
|
||||
return nls.localize('remote.tunnelsView.forwardedPortLabel5', "{0} not forwarded", this.remotePort);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user