Skip to content

Commit

Permalink
fix type err
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed Jan 24, 2025
1 parent 6943d21 commit bfb2c4f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bfb2c4f

Please sign in to comment.