File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,10 @@ export class NoLocalSSHSupportError extends Error {
4343
4444export const SSH_DEST_KEY = 'ssh-dest:' ;
4545
46- export function getGitpodRemoteWindowConnectionInfo ( context : vscode . ExtensionContext ) : { connectionInfo : SSHConnectionParams ; remoteUri : vscode . Uri ; sshDestStr :string } | undefined {
47- const remoteUri = vscode . workspace . workspaceFile || vscode . workspace . workspaceFolders ?. [ 0 ] . uri ;
46+ export function getGitpodRemoteWindowConnectionInfo ( context : vscode . ExtensionContext ) : { connectionInfo : SSHConnectionParams ; remoteUri : vscode . Uri ; sshDestStr : string } | undefined {
47+ const remoteUri = vscode . workspace . workspaceFile ?. scheme !== 'untitled'
48+ ? vscode . workspace . workspaceFile || vscode . workspace . workspaceFolders ?. [ 0 ] . uri
49+ : vscode . workspace . workspaceFolders ?. [ 0 ] . uri ;
4850 if ( vscode . env . remoteName === 'ssh-remote' && context . extension . extensionKind === vscode . ExtensionKind . UI && remoteUri ) {
4951 const [ , sshDestStr ] = remoteUri . authority . split ( '+' ) ;
5052 const connectionInfo = context . globalState . get < SSHConnectionParams > ( `${ SSH_DEST_KEY } ${ sshDestStr } ` ) ;
You can’t perform that action at this time.
0 commit comments