diff --git a/src/vs/base/common/network.ts b/src/vs/base/common/network.ts index 7d525614421c4ea5754b16476ddce637529ab63b..70093426625bc35ada01c432221f142657e5a090 100644 --- a/src/vs/base/common/network.ts +++ b/src/vs/base/common/network.ts @@ -92,7 +92,10 @@ class RemoteAuthoritiesImpl { return this._delegate(uri); } const authority = uri.authority; - const host = this._hosts[authority]; + let host = this._hosts[authority]; + if (host.indexOf(':') !== -1) { + host = `[${host}]`; + } const port = this._ports[authority]; const connectionToken = this._connectionTokens[authority]; return URI.from({