File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -797,7 +797,8 @@ export class RemoteConnector extends Disposable {
797
797
798
798
await this . context . globalState . update ( `${ SSH_DEST_KEY } ${ sshDestination ! . toRemoteSSHString ( ) } ` , { ...params } as SSHConnectionParams ) ;
799
799
800
- const forceNewWindow = this . context . extensionMode === vscode . ExtensionMode . Production ;
800
+ const forceNewWindow = this . context . extensionMode === vscode . ExtensionMode . Production
801
+ && ( ! ! vscode . env . remoteName || ! ! vscode . workspace . workspaceFile || ! ! vscode . workspace . workspaceFolders || ! ! vscode . window . visibleTextEditors . length || ! ! vscode . window . visibleNotebookEditors . length ) ;
801
802
802
803
// Force Linux as host platform (https://github.com/gitpod-io/gitpod/issues/16058)
803
804
if ( isWindows ) {
You can’t perform that action at this time.
0 commit comments