diff --git a/core/config/sharedConfig.ts b/core/config/sharedConfig.ts index cf4446b6f..439925188 100644 --- a/core/config/sharedConfig.ts +++ b/core/config/sharedConfig.ts @@ -167,10 +167,10 @@ export function modifyAnyConfigWithSharedConfig< if (sharedConfig.readResponseTTS !== undefined) { configCopy.experimental.readResponseTTS = sharedConfig.readResponseTTS; } - if (sharedConfig.useCurrentFileAsContext !== undefined) { configCopy.experimental.useCurrentFileAsContext = sharedConfig.useCurrentFileAsContext; } + return configCopy; } diff --git a/extensions/intellij/rules.md b/extensions/intellij/rules.md index e3d749902..1f95724c9 100644 --- a/extensions/intellij/rules.md +++ b/extensions/intellij/rules.md @@ -1,7 +1,3 @@ ---- -globs: "**/intellij**" ---- - # Continue JetBrains Extension ## Project Purpose diff --git a/gui/src/pages/gui/chat-tests/ApplyScenarios.test.tsx b/gui/src/pages/gui/chat-tests/ApplyScenarios.test.tsx index 06c74f080..3624a5bd9 100644 --- a/gui/src/pages/gui/chat-tests/ApplyScenarios.test.tsx +++ b/gui/src/pages/gui/chat-tests/ApplyScenarios.test.tsx @@ -1,11 +1,11 @@ import { act } from "@testing-library/react"; import { renderWithProviders } from "../../../util/test/render"; -import { Chat } from "../Chat"; import { getElementByTestId, verifyNotPresentByTestId, verifyNotPresentByText, -} from "./utils"; +} from "../../../util/test/utils"; +import { Chat } from "../Chat"; test("Chat apply scenarios: handle apply updates and display the accept / reject all buttons", async () => { const { ideMessenger } = await renderWithProviders(); diff --git a/gui/src/pages/gui/chat-tests/Chat.test.tsx b/gui/src/pages/gui/chat-tests/Chat.test.tsx index 7a3d617d8..d3e6aa18b 100644 --- a/gui/src/pages/gui/chat-tests/Chat.test.tsx +++ b/gui/src/pages/gui/chat-tests/Chat.test.tsx @@ -1,12 +1,12 @@ import { act } from "@testing-library/react"; import { addAndSelectMockLlm } from "../../../util/test/config"; import { renderWithProviders } from "../../../util/test/render"; -import { Chat } from "../Chat"; import { getElementByTestId, getElementByText, sendInputWithMockedResponse, -} from "./utils"; +} from "../../../util/test/utils"; +import { Chat } from "../Chat"; test("should render input box", async () => { await renderWithProviders(); diff --git a/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx b/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx index e903f8ae9..157c81e9e 100644 --- a/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx +++ b/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx @@ -14,7 +14,7 @@ import { getElementByText, sendInputWithMockedResponse, verifyNotPresentByTestId, -} from "./utils"; +} from "../../../util/test/utils"; const EDIT_WORKSPACE_DIR = "file:///workspace"; const EDIT_FILEPATH = "test.txt"; diff --git a/gui/src/redux/slices/profilesSlice.ts b/gui/src/redux/slices/profilesSlice.ts index 0ea3d587a..6f3144736 100644 --- a/gui/src/redux/slices/profilesSlice.ts +++ b/gui/src/redux/slices/profilesSlice.ts @@ -19,7 +19,7 @@ export interface ProfilesState { preferencesByProfileId: Record; } -export const defaultProfilesState: ProfilesState = { +const initialState: ProfilesState = { preferencesByProfileId: {}, selectedProfileId: null, selectedOrganizationId: null, @@ -51,7 +51,7 @@ export const defaultProfilesState: ProfilesState = { export const profilesSlice = createSlice({ name: "profiles", - initialState: defaultProfilesState, + initialState, reducers: { setSelectedProfile: (state, { payload }: PayloadAction) => { state.selectedProfileId = payload; diff --git a/gui/src/pages/gui/chat-tests/utils.ts b/gui/src/util/test/utils.ts similarity index 97% rename from gui/src/pages/gui/chat-tests/utils.ts rename to gui/src/util/test/utils.ts index e1062bbe7..ebc4181d7 100644 --- a/gui/src/pages/gui/chat-tests/utils.ts +++ b/gui/src/util/test/utils.ts @@ -2,7 +2,7 @@ import { screen, waitFor } from "@testing-library/dom"; import { act } from "@testing-library/react"; import { Editor } from "@tiptap/core"; import { ChatMessage } from "core"; -import { MockIdeMessenger } from "../../../context/MockIdeMessenger"; +import { MockIdeMessenger } from "../../context/MockIdeMessenger"; function logDomText() { const bodyText = document.body.innerHTML;