File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
lib/vscode/src/vs/workbench/api/common/shared Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,12 @@ export function asWebviewUri(
61
61
// contained a port like localhost:8080.
62
62
// As a temporary workaround, we split the authority at the first colon
63
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 } ` ) ;
64
67
return URI . from ( {
65
68
scheme : Schemas . https ,
66
- authority : ` ${ resource . scheme } + ${ resource . authority . split ( ':' ) [ 0 ] } . ${ webviewRootResourceAuthority } ` ,
69
+ authority,
67
70
path : resource . path ,
68
71
fragment : resource . fragment ,
69
72
query : resource . query ,
You can’t perform that action at this time.
0 commit comments