fix type err
This commit is contained in:
parent
6943d21684
commit
bfb2c4f91f
1 changed files with 3 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue