Merge pull request #6465 from continuedev/adarsh/feat/seq-in-nexteditdata
rolling back edit logging temporarily — issues with repo detection
This commit is contained in:
commit
a1d830e381
1 changed files with 17 additions and 17 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue