Remove debugging console output from generateDiffView function

This commit is contained in:
FBarrca 2025-01-06 22:43:10 +01:00
parent b46c234e35
commit 64737a382d

View file

@ -64,12 +64,6 @@ function generateDiffView(state: EditorState): DecorationSet {
const aiText: string = response?.airesponse ?? "";
const contextText: string = context?.text ?? "";
// Debugging: Remove or conditionally enable in production
console.debug("Generating diff view", {
aiResponse: response,
contextText: context,
});
// Use diff_match_patch instead of diffWords
const dmp = new DiffMatchPatch();
let diffs = dmp.diff_main(contextText, aiText);