From bfb2c4f91f11795fd8848b3b7fa57ccabe9fbb80 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 24 Jan 2025 02:35:09 -0800 Subject: [PATCH] fix type err --- core/core.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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