diff --git a/core/config/profile/ControlPlaneProfileLoader.ts b/core/config/profile/ControlPlaneProfileLoader.ts index ec407974a..5862fab6c 100644 --- a/core/config/profile/ControlPlaneProfileLoader.ts +++ b/core/config/profile/ControlPlaneProfileLoader.ts @@ -6,9 +6,9 @@ import { IdeSettings, SerializedContinueConfig, } from "../../index.js"; +import { ConfigResult } from "../load.js"; import { IProfileLoader } from "./IProfileLoader.js"; import doLoadConfig from "./doLoadConfig.js"; -import { ConfigResult } from "../load.js"; export default class ControlPlaneProfileLoader implements IProfileLoader { private static RELOAD_INTERVAL = 1000 * 60 * 15; // every 15 minutes @@ -45,7 +45,7 @@ export default class ControlPlaneProfileLoader implements IProfileLoader { )) as any); const serializedConfig: SerializedContinueConfig = settings; - return doLoadConfig( + const results = await doLoadConfig( this.ide, this.ideSettingsPromise, this.controlPlaneClient, @@ -53,6 +53,11 @@ export default class ControlPlaneProfileLoader implements IProfileLoader { serializedConfig, this.workspaceId, ); + + return { + ...results, + errors: [], // Don't do config validation here, it happens in admin panel + }; } setIsActive(isActive: boolean): void {}