From 932a5fbdc73c10011650cc96eb592ed0e5fb25ce Mon Sep 17 00:00:00 2001 From: adarshramiyer Date: Fri, 4 Jul 2025 19:14:55 -0700 Subject: [PATCH] =?UTF-8?q?rolling=20back=20edit=20logging=20temporarily?= =?UTF-8?q?=20=E2=80=94=20issues=20with=20repo=20detection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/nextEdit/context/processNextEditData.ts | 34 ++++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/core/nextEdit/context/processNextEditData.ts b/core/nextEdit/context/processNextEditData.ts index 206b17b80..cb514f1e6 100644 --- a/core/nextEdit/context/processNextEditData.ts +++ b/core/nextEdit/context/processNextEditData.ts @@ -2,7 +2,7 @@ import { IDE, Position } from "../.."; import { AutocompleteCodeSnippet } from "../../autocomplete/snippets/types"; import { GetLspDefinitionsFunction } from "../../autocomplete/types"; import { ConfigHandler } from "../../config/ConfigHandler"; -import { DataLogger } from "../../data/log"; +// import { DataLogger } from "../../data/log"; import { RecentlyEditedRange } from "../types"; import { getAutocompleteContext } from "./autocompleteContextFetching"; import { createDiff, DiffFormatType } from "./diffFormatting"; @@ -108,22 +108,22 @@ export const processNextEditData = async ({ ); } - if (filenamesAndDiffs.length > 0) { - // if there are previous edits, log - void DataLogger.getInstance().logDevData({ - name: "nextEditWithHistory", - data: { - previousEdits: filenamesAndDiffs, - fileURI: filePath, - workspaceDirURI: workspaceDir, - beforeContent, - afterContent, - beforeCursorPos: cursorPosBeforeEdit, - afterCursorPos: cursorPosAfterPrevEdit, - context: autocompleteContext, - }, - }); - } + // if (filenamesAndDiffs.length > 0) { + // // if there are previous edits, log + // void DataLogger.getInstance().logDevData({ + // name: "nextEditWithHistory", + // data: { + // previousEdits: filenamesAndDiffs, + // fileURI: filePath, + // workspaceDirURI: workspaceDir, + // beforeContent, + // afterContent, + // beforeCursorPos: cursorPosBeforeEdit, + // afterCursorPos: cursorPosAfterPrevEdit, + // context: autocompleteContext, + // }, + // }); + // } // add current edit to history const thisEdit: prevEdit = {