We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c18207 commit a2b34eaCopy full SHA for a2b34ea
lib/vscode/src/vs/workbench/api/common/shared/webview.ts
@@ -61,9 +61,12 @@ export function asWebviewUri(
61
// contained a port like localhost:8080.
62
// As a temporary workaround, we split the authority at the first colon
63
// and use the first part e.g. localhost
64
+ const [host, port] = resource.authority.split(':', 2)
65
+ const authority = `${resource.scheme}+${host}.${webviewRootResourceAuthority}${port ? `:${port}` : ''}`;
66
+ console.log(`show me the authority: ${authority}`);
67
return URI.from({
68
scheme: Schemas.https,
- authority: `${resource.scheme}+${resource.authority.split(':')[0]}.${webviewRootResourceAuthority}`,
69
+ authority,
70
path: resource.path,
71
fragment: resource.fragment,
72
query: resource.query,
0 commit comments