Fix ipv6 support for simple browser (#163374)

Fixes #158599

This correctly handles ipv6 uris, such as `http://[::]:3000`. In these cases, the brackets are required
This commit is contained in:
Matt Bierner
2022-10-12 11:04:56 -07:00
committed by GitHub
parent c56e49670e
commit b2d129c4e5
2 changed files with 9 additions and 11 deletions

View File

@@ -19,7 +19,8 @@ export class SimpleBrowserManager {
this._activeView = undefined;
}
public show(url: string, options?: ShowOptions): void {
public show(inputUri: string | vscode.Uri, options?: ShowOptions): void {
const url = typeof inputUri === 'string' ? inputUri : inputUri.toString(true);
if (this._activeView) {
this._activeView.show(url, options);
} else {