File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -742,6 +742,17 @@ export default class RemoteConnector extends Disposable {
742
742
}
743
743
744
744
public async autoTunnelCommand ( gitpodHost : string , instanceId : string , enabled : boolean ) {
745
+ const forceUseLocalApp = vscode . workspace . getConfiguration ( 'gitpod' ) . get < boolean > ( 'remote.useLocalApp' ) ! ;
746
+ if ( ! forceUseLocalApp ) {
747
+ const authority = vscode . Uri . parse ( gitpodHost ) . authority ;
748
+ const configKey = `config/${ authority } ` ;
749
+ const localAppconfig = this . context . globalState . get < LocalAppConfig > ( configKey ) ;
750
+ if ( ! localAppconfig || checkRunning ( localAppconfig . pid ) !== true ) {
751
+ // Do nothing if we are using SSH gateway
752
+ return ;
753
+ }
754
+ }
755
+
745
756
try {
746
757
await this . withLocalApp ( gitpodHost , client => {
747
758
const request = new AutoTunnelRequest ( ) ;
You can’t perform that action at this time.
0 commit comments