fix type err

This commit is contained in:
Nate 2025-01-24 02:35:09 -08:00
parent 6943d21684
commit bfb2c4f91f

View file

@ -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<ToCoreProtocol, FromCoreProtocol>
@ -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