From 85d8581230efabd8ace3eba8b8d1d1cb4f3a1469 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 20 Nov 2024 22:54:58 -0800 Subject: [PATCH] fix build errs --- gui/src/components/AddModelButtonSubtext.tsx | 4 +++- gui/src/components/ProfileSwitcher.tsx | 2 +- gui/src/components/modelSelection/ModelSelect.tsx | 6 ++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gui/src/components/AddModelButtonSubtext.tsx b/gui/src/components/AddModelButtonSubtext.tsx index 11a95a711..0ebb2ed9d 100644 --- a/gui/src/components/AddModelButtonSubtext.tsx +++ b/gui/src/components/AddModelButtonSubtext.tsx @@ -11,7 +11,9 @@ function AddModelButtonSubtext() { - ideMessenger.post("config/openLocalConfigFile", undefined) + ideMessenger.post("config/openProfile", { + profileId: "local", + }) } > config file diff --git a/gui/src/components/ProfileSwitcher.tsx b/gui/src/components/ProfileSwitcher.tsx index 601de6782..4e79972d8 100644 --- a/gui/src/components/ProfileSwitcher.tsx +++ b/gui/src/components/ProfileSwitcher.tsx @@ -18,8 +18,8 @@ import { vscListActiveBackground, vscListActiveForeground, } from "."; +import { useAuth } from "../context/Auth"; import { IdeMessengerContext } from "../context/IdeMessenger"; -import { useAuth } from "../hooks/useAuth"; import { useWebviewListener } from "../hooks/useWebviewListener"; import { setLastControlServerBetaEnabledStatus } from "../redux/slices/miscSlice"; import { RootState } from "../redux/store"; diff --git a/gui/src/components/modelSelection/ModelSelect.tsx b/gui/src/components/modelSelection/ModelSelect.tsx index 2ce794446..fbaf52af4 100644 --- a/gui/src/components/modelSelection/ModelSelect.tsx +++ b/gui/src/components/modelSelection/ModelSelect.tsx @@ -16,6 +16,7 @@ import { vscInputBackground, } from ".."; import { IdeMessengerContext } from "../../context/IdeMessenger"; +import AddModelForm from "../../forms/AddModelForm"; import { defaultModelSelector } from "../../redux/selectors/modelSelectors"; import { setDefaultModel } from "../../redux/slices/stateSlice"; import { @@ -29,7 +30,6 @@ import { isMetaEquivalentKeyPressed, } from "../../util"; import ConfirmationDialog from "../dialogs/ConfirmationDialog"; -import AddModelForm from "../../forms/AddModelForm"; interface ModelOptionProps { option: Option; @@ -169,7 +169,9 @@ function ModelOption({ e.stopPropagation(); e.preventDefault(); - ideMessenger.post("config/openLocalConfigFile", undefined); + ideMessenger.post("config/openProfile", { + profileId: "local", + }); } function handleOptionClick(e) {