From fab40b925e28651872e73503fff5d46d91e79c85 Mon Sep 17 00:00:00 2001 From: Adarsh Iyer <76015889+adarshramiyer@users.noreply.github.com> Date: Wed, 16 Jul 2025 16:30:33 -0700 Subject: [PATCH] Simplify Edit Logging (#6663) * chore: :adhesive_bandage: remove reliance on "log editing data" toggle * chore: :fire: remove "Log Editing Data" toggle for streamlined experience * chore: :fire: complete overhaul, removing logEditingData setting everywhere --- core/config/sharedConfig.ts | 4 ---- core/index.d.ts | 6 ----- extensions/vscode/package-lock.json | 4 ++-- .../vscode/src/util/editLoggingUtils.ts | 2 +- gui/src/pages/config/ContinueFeaturesMenu.tsx | 23 ------------------- gui/src/pages/config/UserSettingsForm.tsx | 7 ------ 6 files changed, 3 insertions(+), 43 deletions(-) diff --git a/core/config/sharedConfig.ts b/core/config/sharedConfig.ts index 5d7053cf8..c720f4272 100644 --- a/core/config/sharedConfig.ts +++ b/core/config/sharedConfig.ts @@ -19,7 +19,6 @@ export const sharedConfigSchema = z readResponseTTS: z.boolean(), promptPath: z.string(), useCurrentFileAsContext: z.boolean(), - logEditingData: z.boolean(), optInNextEditFeature: z.boolean(), enableExperimentalTools: z.boolean(), codebaseToolCallingOnly: z.boolean(), @@ -181,9 +180,6 @@ export function modifyAnyConfigWithSharedConfig< configCopy.experimental.useCurrentFileAsContext = sharedConfig.useCurrentFileAsContext; } - if (sharedConfig.logEditingData !== undefined) { - configCopy.experimental.logEditingData = sharedConfig.logEditingData; - } if (sharedConfig.optInNextEditFeature !== undefined) { configCopy.experimental.optInNextEditFeature = sharedConfig.optInNextEditFeature; diff --git a/core/index.d.ts b/core/index.d.ts index 92ad04dfb..a32e5532f 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -1288,7 +1288,6 @@ export interface ContinueUIConfig { codeWrap?: boolean; showSessionTabs?: boolean; autoAcceptEditToolDiffs?: boolean; - logEditingData?: boolean; } export interface ContextMenuConfig { @@ -1441,11 +1440,6 @@ export interface ExperimentalConfig { */ useCurrentFileAsContext?: boolean; - /** - * If enabled, will save data on the user's editing processes - */ - logEditingData?: boolean; - /** * If enabled, will enable next edit in place of autocomplete */ diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 35d10c3f9..8780ab1e2 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "1.1.60", + "version": "1.1.63", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "1.1.60", + "version": "1.1.63", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", diff --git a/extensions/vscode/src/util/editLoggingUtils.ts b/extensions/vscode/src/util/editLoggingUtils.ts index 4ef1fabc6..767131868 100644 --- a/extensions/vscode/src/util/editLoggingUtils.ts +++ b/extensions/vscode/src/util/editLoggingUtils.ts @@ -61,7 +61,7 @@ export const handleTextDocumentChange = async ( const editor = vscode.window.activeTextEditor; const { config } = await configHandler.loadConfig(); - if (!config?.experimental?.logEditingData) return; + // if (!config?.experimental?.logEditingData) return; if (!editor) return; if (event.contentChanges.length === 0) return; diff --git a/gui/src/pages/config/ContinueFeaturesMenu.tsx b/gui/src/pages/config/ContinueFeaturesMenu.tsx index f3cb738ca..3f08499dd 100644 --- a/gui/src/pages/config/ContinueFeaturesMenu.tsx +++ b/gui/src/pages/config/ContinueFeaturesMenu.tsx @@ -1,16 +1,10 @@ -import { ExclamationTriangleIcon } from "@heroicons/react/24/outline"; import ToggleSwitch from "../../components/gui/Switch"; -import { ToolTip } from "../../components/gui/Tooltip"; interface ContinueFeaturesMenuProps { - logEditingData: boolean; - handleLogEditingDataToggle: (value: boolean) => void; optInNextEditFeature: boolean; handleOptInNextEditToggle: (value: boolean) => void; } export function ContinueFeaturesMenu({ - logEditingData, - handleLogEditingDataToggle, optInNextEditFeature, handleOptInNextEditToggle, }: ContinueFeaturesMenuProps) { @@ -20,23 +14,6 @@ export function ContinueFeaturesMenu({ 🚧 INTERNAL SETTINGS 🚧
- handleLogEditingDataToggle(!logEditingData)} - text="Log Editing Data" - showIfToggled={ - <> - - - {`Only turn this on if you want to log your editing processes in addition to the normal dev data. Note that this will store a lot of data.`} - - - } - /> - handleOptInNextEditToggle(!optInNextEditFeature)} diff --git a/gui/src/pages/config/UserSettingsForm.tsx b/gui/src/pages/config/UserSettingsForm.tsx index 04405f1be..9eea8003b 100644 --- a/gui/src/pages/config/UserSettingsForm.tsx +++ b/gui/src/pages/config/UserSettingsForm.tsx @@ -67,10 +67,6 @@ export function UserSettingsForm() { }); }; - const handleLogEditingDataToggle = (value: boolean) => { - handleUpdate({ logEditingData: value }); - }; - const handleOptInNextEditToggle = (value: boolean) => { handleUpdate({ optInNextEditFeature: value }); }; @@ -86,7 +82,6 @@ export function UserSettingsForm() { const showChatScrollbar = config.ui?.showChatScrollbar ?? false; const readResponseTTS = config.experimental?.readResponseTTS ?? false; const autoAcceptEditToolDiffs = config.ui?.autoAcceptEditToolDiffs ?? false; - const logEditingData = config.experimental?.logEditingData ?? false; const displayRawMarkdown = config.ui?.displayRawMarkdown ?? false; const disableSessionTitles = config.disableSessionTitles ?? false; const useCurrentFileAsContext = @@ -436,8 +431,6 @@ export function UserSettingsForm() { {hasContinueEmail && (