Skip to content

Commit 68cd352

Browse files
authored
fix resource rewrite before host available (#82531)
fixes #82467
1 parent 6cb2255 commit 68cd352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/base/common/network.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class RemoteAuthoritiesImpl {
9393
}
9494
const authority = uri.authority;
9595
let host = this._hosts[authority];
96-
if (host.indexOf(':') !== -1) {
96+
if (host && host.indexOf(':') !== -1) {
9797
host = `[${host}]`;
9898
}
9999
const port = this._ports[authority];

0 commit comments

Comments
 (0)