refactor: remove optInNextEditFeature from experimental config
This commit is contained in:
parent
91b9f7924b
commit
69dfc3d1f2
4 changed files with 4 additions and 28 deletions
|
|
@ -19,7 +19,6 @@ export const sharedConfigSchema = z
|
|||
readResponseTTS: z.boolean(),
|
||||
promptPath: z.string(),
|
||||
useCurrentFileAsContext: z.boolean(),
|
||||
optInNextEditFeature: z.boolean(),
|
||||
enableExperimentalTools: z.boolean(),
|
||||
codebaseToolCallingOnly: z.boolean(),
|
||||
enableStaticContextualization: z.boolean(),
|
||||
|
|
@ -181,10 +180,10 @@ export function modifyAnyConfigWithSharedConfig<
|
|||
configCopy.experimental.useCurrentFileAsContext =
|
||||
sharedConfig.useCurrentFileAsContext;
|
||||
}
|
||||
if (sharedConfig.optInNextEditFeature !== undefined) {
|
||||
configCopy.experimental.optInNextEditFeature =
|
||||
sharedConfig.optInNextEditFeature;
|
||||
}
|
||||
// if (sharedConfig.optInNextEditFeature !== undefined) {
|
||||
// configCopy.experimental.optInNextEditFeature =
|
||||
// sharedConfig.optInNextEditFeature;
|
||||
// }
|
||||
if (sharedConfig.codebaseToolCallingOnly !== undefined) {
|
||||
configCopy.experimental.codebaseToolCallingOnly =
|
||||
sharedConfig.codebaseToolCallingOnly;
|
||||
|
|
|
|||
5
core/index.d.ts
vendored
5
core/index.d.ts
vendored
|
|
@ -1540,11 +1540,6 @@ export interface ExperimentalConfig {
|
|||
*/
|
||||
useCurrentFileAsContext?: boolean;
|
||||
|
||||
/**
|
||||
* If enabled, will enable next edit in place of autocomplete
|
||||
*/
|
||||
optInNextEditFeature?: boolean;
|
||||
|
||||
/**
|
||||
* If enabled, @codebase will only use tool calling
|
||||
* instead of embeddings, FTS, recently edited files, etc.
|
||||
|
|
|
|||
|
|
@ -1,14 +1,10 @@
|
|||
import ToggleSwitch from "../../components/gui/Switch";
|
||||
interface ContinueFeaturesMenuProps {
|
||||
optInNextEditFeature: boolean;
|
||||
handleOptInNextEditToggle: (value: boolean) => void;
|
||||
enableStaticContextualization: boolean;
|
||||
handleEnableStaticContextualizationToggle: (value: boolean) => void;
|
||||
}
|
||||
|
||||
export function ContinueFeaturesMenu({
|
||||
optInNextEditFeature,
|
||||
handleOptInNextEditToggle,
|
||||
enableStaticContextualization,
|
||||
handleEnableStaticContextualizationToggle,
|
||||
}: ContinueFeaturesMenuProps) {
|
||||
|
|
@ -18,12 +14,6 @@ export function ContinueFeaturesMenu({
|
|||
🚧 INTERNAL SETTINGS 🚧
|
||||
</div>
|
||||
<div className="flex w-full flex-col gap-y-4">
|
||||
<ToggleSwitch
|
||||
isToggled={optInNextEditFeature}
|
||||
onToggle={() => handleOptInNextEditToggle(!optInNextEditFeature)}
|
||||
text="Enable Next Edit Over Autocomplete"
|
||||
/>
|
||||
|
||||
<ToggleSwitch
|
||||
isToggled={enableStaticContextualization}
|
||||
onToggle={() =>
|
||||
|
|
|
|||
|
|
@ -67,10 +67,6 @@ export function UserSettingsForm() {
|
|||
});
|
||||
};
|
||||
|
||||
const handleOptInNextEditToggle = (value: boolean) => {
|
||||
handleUpdate({ optInNextEditFeature: value });
|
||||
};
|
||||
|
||||
const handleEnableStaticContextualizationToggle = (value: boolean) => {
|
||||
handleUpdate({ enableStaticContextualization: value });
|
||||
};
|
||||
|
|
@ -92,8 +88,6 @@ export function UserSettingsForm() {
|
|||
config.experimental?.useCurrentFileAsContext ?? false;
|
||||
const enableExperimentalTools =
|
||||
config.experimental?.enableExperimentalTools ?? false;
|
||||
const optInNextEditFeature =
|
||||
config.experimental?.optInNextEditFeature ?? false;
|
||||
const codebaseToolCallingOnly =
|
||||
config.experimental?.codebaseToolCallingOnly ?? false;
|
||||
const enableStaticContextualization =
|
||||
|
|
@ -437,8 +431,6 @@ export function UserSettingsForm() {
|
|||
|
||||
{hasContinueEmail && (
|
||||
<ContinueFeaturesMenu
|
||||
optInNextEditFeature={optInNextEditFeature}
|
||||
handleOptInNextEditToggle={handleOptInNextEditToggle}
|
||||
enableStaticContextualization={
|
||||
enableStaticContextualization
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue