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 {
797797
798798 await this . context . globalState . update ( `${ SSH_DEST_KEY } ${ sshDestination ! . toRemoteSSHString ( ) } ` , { ...params } as SSHConnectionParams ) ;
799799
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 ) ;
801802
802803 // Force Linux as host platform (https://github.com/gitpod-io/gitpod/issues/16058)
803804 if ( isWindows ) {
You can’t perform that action at this time.
0 commit comments