File tree Expand file tree Collapse file tree
src/vs/platform/webview/electron-main Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -156,8 +156,7 @@ export class WebviewProtocolProvider extends Disposable {
156156 rewriteUri = ( uri ) => {
157157 if ( metadata . remoteConnectionData ) {
158158 if ( uri . scheme === Schemas . vscodeRemote || ( metadata . extensionLocation ?. scheme === REMOTE_HOST_SCHEME ) ) {
159- const scheme = metadata . remoteConnectionData . host === 'localhost' || metadata . remoteConnectionData . host === '127.0.0.1' ? 'http' : 'https' ;
160- return URI . parse ( `${ scheme } ://${ metadata . remoteConnectionData . host } :${ metadata . remoteConnectionData . port } ` ) . with ( {
159+ return URI . parse ( `http://${ metadata . remoteConnectionData . host } :${ metadata . remoteConnectionData . port } ` ) . with ( {
161160 path : '/vscode-remote-resource' ,
162161 query : `tkn=${ metadata . remoteConnectionData . connectionToken } &path=${ encodeURIComponent ( uri . path ) } ` ,
163162 } ) ;
You can’t perform that action at this time.
0 commit comments