fix build errs
This commit is contained in:
parent
f9f48406dc
commit
85d8581230
3 changed files with 8 additions and 4 deletions
|
|
@ -11,7 +11,9 @@ function AddModelButtonSubtext() {
|
|||
<span
|
||||
className="cursor-pointer underline"
|
||||
onClick={() =>
|
||||
ideMessenger.post("config/openLocalConfigFile", undefined)
|
||||
ideMessenger.post("config/openProfile", {
|
||||
profileId: "local",
|
||||
})
|
||||
}
|
||||
>
|
||||
config file
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue