mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user