diff --git a/core/core.ts b/core/core.ts index 9211f9366d..cf24053b4d 100644 --- a/core/core.ts +++ b/core/core.ts @@ -52,9 +52,9 @@ import { type IndexingProgressUpdate, } from "."; +import { getControlPlaneEnv } from "./control-plane/env"; import type { FromCoreProtocol, ToCoreProtocol } from "./protocol"; import type { IMessenger, Message } from "./protocol/messenger"; -import { controlPlaneEnv } from "./control-plane/env"; export class Core { // implements IMessenger @@ -298,10 +298,8 @@ export class Core { }); on("controlPlane/openUrl", async (msg) => { - await this.messenger.request( - "openUrl", - `${controlPlaneEnv.APP_URL}${msg.data.path}`, - ); + const env = await getControlPlaneEnv(this.ide.getIdeSettings()); + await this.messenger.request("openUrl", `${env.APP_URL}${msg.data.path}`); }); // Context providers