Skip to content

Commit 9c64401

Browse files
authored
Remove local app logic (#97)
1 parent 49fbaf6 commit 9c64401

File tree

7 files changed

+50
-558
lines changed

7 files changed

+50
-558
lines changed

package.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"activationEvents": [
3535
"onResolveRemoteAuthority:ssh-remote",
3636
"onCommand:gitpod.exportLogs",
37-
"onCommand:gitpod.api.autoTunnel",
3837
"onCommand:gitpod.installLocalExtensions",
3938
"onAuthenticationRequest:gitpod",
4039
"onUri",
@@ -57,12 +56,6 @@
5756
"default": "https://gitpod.io/",
5857
"scope": "application"
5958
},
60-
"gitpod.remote.useLocalApp": {
61-
"type": "boolean",
62-
"description": "Use the local companion app to connect to a remote workspace.\nWarning: Connecting to a remote workspace using local companion app will be removed in the near future.",
63-
"default": false,
64-
"scope": "application"
65-
},
6659
"gitpod.lsshExtensionIpcPort": {
6760
"type": "number",
6861
"description": "The port to use for the local SSH ipc server.",

src/commands/workspaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ export class ConnectInCurrentWindowCommand implements Command {
350350

351351
private async initializeLocalSSH(workspaceId: string) {
352352
try {
353-
await this.remoteService.updateRemoteSSHConfig(true, undefined);
353+
await this.remoteService.updateRemoteSSHConfig();
354354
await Promise.all([
355355
this.remoteService.setupSSHProxy(),
356356
this.remoteService.startLocalSSHServiceServer()

src/configuration.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ function getGitpodHost() {
1313
return vscode.workspace.getConfiguration('gitpod').get<string>('host') || 'https://gitpod.io/';
1414
}
1515

16-
function getUseLocalApp() {
17-
return vscode.workspace.getConfiguration('gitpod').get<boolean>('remote.useLocalApp') || false;
18-
}
19-
2016
function getLocalSshExtensionIpcPort() {
2117
let defaultPort = 43025;
2218
if (vscode.env.appName.includes('Insiders')) {
@@ -31,7 +27,6 @@ function getSSHProxyLogLevel() {
3127

3228
export const Configuration = {
3329
getGitpodHost,
34-
getUseLocalApp,
3530
getLocalSshExtensionIpcPort,
3631
getSSHProxyLogLevel
3732
};

src/experiments.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@ import { ILogService } from './services/logService';
1313
import { IHostService } from './services/hostService';
1414
import { Disposable } from './common/dispose';
1515

16-
const EXPERIMENTAL_SETTINGS = [
17-
'gitpod.remote.useLocalApp',
16+
const EXPERIMENTAL_SETTINGS: string[] = [
1817
// 'gitpod.remote.useLocalSSHServer',
1918
];
2019

2120
export interface IExperimentsService {
2221
getUseLocalSSHProxy(): Promise<boolean>;
23-
getUsePublicAPI(gitpodHost: string): Promise<boolean>
22+
getUsePublicAPI(gitpodHost: string): Promise<boolean>;
2423
}
2524

2625
export class ExperimentalSettings extends Disposable implements IExperimentsService {

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ export async function activate(context: vscode.ExtensionContext) {
118118
commandManager.register(new SignInCommand(sessionService));
119119
commandManager.register(new InstallLocalExtensionsOnRemoteCommand(remoteService));
120120
commandManager.register(new ExportLogsCommand(context, context.logUri, notificationService, telemetryService, logger, hostService));
121+
// Backwards compatibility with older gitpod-remote extensions
122+
commandManager.register({ id: 'gitpod.api.autoTunnel', execute: () => {} });
121123

122124
if (!context.globalState.get<boolean>(FIRST_INSTALL_KEY, false)) {
123125
context.globalState.update(FIRST_INSTALL_KEY, true);
@@ -127,8 +129,6 @@ export async function activate(context: vscode.ExtensionContext) {
127129
// Because auth provider implementation is in the same extension, we need to wait for it to activate first
128130
sessionService.didFirstLoad.then(async () => {
129131
if (remoteConnectionInfo) {
130-
commandManager.register({ id: 'gitpod.api.autoTunnel', execute: () => remoteConnector.autoTunnelCommand });
131-
132132
remoteSession = new RemoteSession(remoteConnectionInfo.connectionInfo, context, remoteService, hostService, sessionService, experiments, logger!, telemetryService!, notificationService);
133133
await remoteSession.initialize();
134134
} else if (sessionService.isSignedIn()) {

0 commit comments

Comments
 (0)