We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe414b5 commit cdbf956Copy full SHA for cdbf956
lib/vscode/src/vs/workbench/api/common/shared/webview.ts
@@ -60,7 +60,7 @@ export function asWebviewUri(
60
const uri = new URL(resource.authority);
61
return URI.from({
62
scheme: Schemas.https,
63
- authority: `${resource.scheme}+${uri.hostname}+${uri.port}.${webviewRootResourceAuthority}`,
+ authority: `${resource.scheme}+${uri.hostname}.${webviewRootResourceAuthority}` + uri.port ? (":" + uri.port) : "",
64
path: resource.path,
65
fragment: resource.fragment,
66
query: resource.query,
0 commit comments