Skip to content

Commit 0f7217e

Browse files
authored
Merge pull request #5201 from continuedev/nate/remove-cft
remove cft
2 parents 52f1f70 + f576742 commit 0f7217e

File tree

17 files changed

+17
-186
lines changed

17 files changed

+17
-186
lines changed

core/config/ConfigHandler.ts

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
ControlPlaneClient,
55
ControlPlaneSessionInfo,
66
} from "../control-plane/client.js";
7-
import { getControlPlaneEnv, useHub } from "../control-plane/env.js";
7+
import { getControlPlaneEnv } from "../control-plane/env.js";
88
import {
99
BrowserSerializedContinueConfig,
1010
ContinueConfig,
@@ -16,7 +16,6 @@ import {
1616
import { GlobalContext } from "../util/GlobalContext.js";
1717

1818
import { getAllAssistantFiles } from "./loadLocalAssistants.js";
19-
import ControlPlaneProfileLoader from "./profile/ControlPlaneProfileLoader.js";
2019
import LocalProfileLoader from "./profile/LocalProfileLoader.js";
2120
import PlatformProfileLoader from "./profile/PlatformProfileLoader.js";
2221
import {
@@ -135,16 +134,11 @@ export class ConfigHandler {
135134
const userId = await this.controlPlaneClient.userId;
136135
if (userId) {
137136
const orgDescs = await this.controlPlaneClient.listOrganizations();
138-
if (await useHub(this.ideSettingsPromise)) {
139-
const personalHubOrg = await this.getPersonalHubOrg();
140-
const hubOrgs = await Promise.all(
141-
orgDescs.map((org) => this.getNonPersonalHubOrg(org)),
142-
);
143-
return [...hubOrgs, personalHubOrg];
144-
} else {
145-
// Should only ever be one teams org. Will be removed soon anyways
146-
return await Promise.all(orgDescs.map((org) => this.getTeamsOrg(org)));
147-
}
137+
const personalHubOrg = await this.getPersonalHubOrg();
138+
const hubOrgs = await Promise.all(
139+
orgDescs.map((org) => this.getNonPersonalHubOrg(org)),
140+
);
141+
return [...hubOrgs, personalHubOrg];
148142
} else {
149143
return [await this.getLocalOrg()];
150144
}
@@ -213,25 +207,6 @@ export class ConfigHandler {
213207
return this.rectifyProfilesForOrg(this.PERSONAL_ORG_DESC, allLocalProfiles);
214208
}
215209

216-
async getTeamsOrg(org: OrganizationDescription): Promise<OrgWithProfiles> {
217-
const workspaces = await this.controlPlaneClient.listWorkspaces();
218-
const profiles = await this.getAllLocalProfiles();
219-
workspaces.forEach((workspace) => {
220-
const profileLoader = new ControlPlaneProfileLoader(
221-
workspace.id,
222-
workspace.name,
223-
this.controlPlaneClient,
224-
this.ide,
225-
this.ideSettingsPromise,
226-
this.llmLogger,
227-
this.reloadConfig.bind(this),
228-
);
229-
230-
profiles.push(new ProfileLifecycleManager(profileLoader, this.ide));
231-
});
232-
return this.rectifyProfilesForOrg(org, profiles);
233-
}
234-
235210
private async rectifyProfilesForOrg(
236211
org: OrganizationDescription,
237212
profiles: ProfileLifecycleManager[],

core/config/profile/ControlPlaneProfileLoader.ts

Lines changed: 0 additions & 80 deletions
This file was deleted.

core/config/yaml/loadYaml.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ async function loadConfigYaml(
112112
await controlPlaneClient.getAccessToken(),
113113
getControlPlaneEnvSync(
114114
ideSettings.continueTestEnvironment,
115-
ideSettings.enableControlServerBeta,
116115
).CONTROL_PLANE_URL,
117116
),
118117
{

core/control-plane/env.ts

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,6 @@ const WORKOS_CLIENT_ID_STAGING = "client_01J0FW6XCPMJMQ3CG51RB4HBZQ";
2121
const WORKOS_ENV_ID_PRODUCTION = "continue";
2222
const WORKOS_ENV_ID_STAGING = "continue-staging";
2323

24-
export const PRODUCTION_ENV: ControlPlaneEnv = {
25-
DEFAULT_CONTROL_PLANE_PROXY_URL:
26-
"https://control-plane-api-service-i3dqylpbqa-uc.a.run.app/",
27-
CONTROL_PLANE_URL:
28-
"https://control-plane-api-service-i3dqylpbqa-uc.a.run.app/",
29-
AUTH_TYPE: WORKOS_ENV_ID_PRODUCTION,
30-
WORKOS_CLIENT_ID: WORKOS_CLIENT_ID_PRODUCTION,
31-
APP_URL: "https://app.continue.dev/",
32-
};
33-
3424
const PRODUCTION_HUB_ENV: ControlPlaneEnv = {
3525
DEFAULT_CONTROL_PLANE_PROXY_URL: "https://api.continue.dev/",
3626
CONTROL_PLANE_URL: "https://api.continue.dev/",
@@ -71,15 +61,11 @@ export async function getControlPlaneEnv(
7161
ideSettingsPromise: Promise<IdeSettings>,
7262
): Promise<ControlPlaneEnv> {
7363
const ideSettings = await ideSettingsPromise;
74-
return getControlPlaneEnvSync(
75-
ideSettings.continueTestEnvironment,
76-
ideSettings.enableControlServerBeta,
77-
);
64+
return getControlPlaneEnvSync(ideSettings.continueTestEnvironment);
7865
}
7966

8067
export function getControlPlaneEnvSync(
8168
ideTestEnvironment: IdeSettings["continueTestEnvironment"],
82-
enableControlServerBeta: IdeSettings["enableControlServerBeta"],
8369
): ControlPlaneEnv {
8470
// Note .local overrides .staging
8571
if (fs.existsSync(getLocalEnvironmentDotFilePath())) {
@@ -90,10 +76,6 @@ export function getControlPlaneEnvSync(
9076
return STAGING_ENV;
9177
}
9278

93-
if (enableControlServerBeta === true) {
94-
return PRODUCTION_ENV;
95-
}
96-
9779
const env =
9880
ideTestEnvironment === "production"
9981
? "hub"
@@ -109,17 +91,12 @@ export function getControlPlaneEnvSync(
10991
? STAGING_ENV
11092
: env === "test"
11193
? TEST_ENV
112-
: env === "hub"
113-
? PRODUCTION_HUB_ENV
114-
: PRODUCTION_ENV;
94+
: PRODUCTION_HUB_ENV;
11595
}
11696

11797
export async function useHub(
11898
ideSettingsPromise: Promise<IdeSettings>,
11999
): Promise<boolean> {
120100
const ideSettings = await ideSettingsPromise;
121-
if (ideSettings.enableControlServerBeta) {
122-
return false;
123-
}
124101
return ideSettings.continueTestEnvironment !== "none";
125102
}

core/core.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,6 @@ export class Core {
172172
this.configHandler.currentProfile?.profileDescription.id || null,
173173
organizations: this.configHandler.getSerializedOrgs(),
174174
selectedOrgId: this.configHandler.currentOrg.id,
175-
usingContinueForTeams: (await ideSettingsPromise)
176-
.enableControlServerBeta,
177175
});
178176

179177
// update additional submenu context providers registered via VSCode API
@@ -429,8 +427,6 @@ export class Core {
429427
this.configHandler.currentProfile?.profileDescription.id ?? null,
430428
organizations: this.configHandler.getSerializedOrgs(),
431429
selectedOrgId: this.configHandler.currentOrg.id,
432-
usingContinueForTeams: (await ideSettingsPromise)
433-
.enableControlServerBeta,
434430
};
435431
});
436432

core/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,6 @@ export interface IdeSettings {
699699
remoteConfigServerUrl: string | undefined;
700700
remoteConfigSyncPeriod: number;
701701
userToken: string;
702-
enableControlServerBeta: boolean;
703702
continueTestEnvironment: "none" | "production" | "staging" | "local";
704703
pauseCodebaseIndexOnStart: boolean;
705704
}

core/protocol/core.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ export type ToCoreFromIdeOrWebviewProtocol = {
6969
profileId: string | null;
7070
organizations: SerializedOrgWithProfiles[];
7171
selectedOrgId: string;
72-
usingContinueForTeams: boolean;
7372
},
7473
];
7574
"config/deleteModel": [{ title: string }, void];

core/protocol/webview.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export type ToWebviewFromIdeOrCoreProtocol = {
1515
profileId: string | null;
1616
organizations: SerializedOrgWithProfiles[];
1717
selectedOrgId: string | null;
18-
usingContinueForTeams: boolean;
1918
},
2019
void,
2120
];

core/util/filesystem.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class FileSystemIde implements IDE {
5252
remoteConfigServerUrl: undefined,
5353
remoteConfigSyncPeriod: 60,
5454
userToken: "",
55-
enableControlServerBeta: false,
5655
continueTestEnvironment: "none",
5756
pauseCodebaseIndexOnStart: false,
5857
};

extensions/intellij/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pluginGroup=com.github.continuedev.continueintellijextension
33
pluginName=continue-intellij-extension
44
pluginRepositoryUrl=https://github.com/continuedev/continue
55
# SemVer format -> https://semver.org
6-
pluginVersion=1.0.12
6+
pluginVersion=1.0.13
77
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
88
pluginSinceBuild=223
99
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension

extensions/vscode/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/vscode/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "continue",
33
"icon": "media/icon.png",
44
"author": "Continue Dev, Inc",
5-
"version": "1.1.23",
5+
"version": "1.1.24",
66
"repository": {
77
"type": "git",
88
"url": "https://github.com/continuedev/continue"
@@ -92,11 +92,6 @@
9292
"default": true,
9393
"markdownDescription": "Continue collects anonymous usage data, cleaned of PII, to help us improve the product for our users. Read more at [continue.dev › Telemetry](https://docs.continue.dev/telemetry)."
9494
},
95-
"continue.enableContinueForTeams": {
96-
"type": "boolean",
97-
"default": false,
98-
"markdownDescription": "Enable Continue for teams beta features. To sign in, click the gear icon to go to the settings page, and click Sign In."
99-
},
10095
"continue.showInlineTip": {
10196
"type": "boolean",
10297
"default": true,

extensions/vscode/src/VsCodeIde.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -759,10 +759,6 @@ class VsCodeIde implements IDE {
759759
60,
760760
),
761761
userToken: settings.get<string>("userToken", ""),
762-
enableControlServerBeta: settings.get<boolean>(
763-
"enableContinueForTeams",
764-
false,
765-
),
766762
continueTestEnvironment: "production",
767763
pauseCodebaseIndexOnStart: settings.get<boolean>(
768764
"pauseCodebaseIndexOnStart",

extensions/vscode/src/stubs/WorkOsAuthProvider.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import crypto from "crypto";
22

33
import { ControlPlaneSessionInfo } from "core/control-plane/client";
4-
import { EXTENSION_NAME, getControlPlaneEnvSync } from "core/control-plane/env";
4+
import { getControlPlaneEnvSync } from "core/control-plane/env";
55
import fetch from "node-fetch";
66
import { v4 as uuidv4 } from "uuid";
77
import {
@@ -16,7 +16,6 @@ import {
1616
ProgressLocation,
1717
Uri,
1818
window,
19-
workspace,
2019
} from "vscode";
2120

2221
import { PromiseAdapter, promiseFromEvent } from "./promiseUtils";
@@ -25,13 +24,7 @@ import { UriEventHandler } from "./uriHandler";
2524

2625
const AUTH_NAME = "Continue";
2726

28-
const enableControlServerBeta = workspace
29-
.getConfiguration(EXTENSION_NAME)
30-
.get<boolean>("enableContinueForTeams", false);
31-
const controlPlaneEnv = getControlPlaneEnvSync(
32-
true ? "production" : "none",
33-
enableControlServerBeta,
34-
);
27+
const controlPlaneEnv = getControlPlaneEnvSync(true ? "production" : "none");
3528

3629
const SESSIONS_SECRET_KEY = `${controlPlaneEnv.AUTH_TYPE}.sessions`;
3730

gui/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)