From dbf638f0af1fc624ce209cb5a21de0f697f528cd Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 25 May 2025 06:53:36 +0200 Subject: [PATCH] Refactor code by removing unnecessary comments and adjusting line changes handling --- main.js | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/main.js b/main.js index 3e7f6b7..74ddbc3 100644 --- a/main.js +++ b/main.js @@ -73,18 +73,6 @@ if (Array.isArray(folders)) { })); store.set('folders', folders); } -//test -//test -//test -//test -//test -//test -//test -//test -//test -//test -//test -//test // Map zum Speichern der Watcher pro Ordner const repoWatchers = new Map(); @@ -579,10 +567,12 @@ async function autoCommit(folderPath, message) { const threshold = store.get('intelligentCommitThreshold') || 10; if (folders[idx].linesChanged >= threshold) { debug('Congratulations! You changed enough lines of code :)'); - folders[idx].linesChanged = 0; - const cands = folders[idx].llmCandidates; - folders[idx].llmCandidates = []; + //folders[idx].linesChanged = 0; + //const cands = folders[idx].llmCandidates; + //folders[idx].llmCandidates = []; await runLLMCommitRewrite(folderPath, cands); + folders[idx].linesChanged = 0; // !!!!!!!!!!!!!!!!!!! + folders[idx].llmCandidates = []; store.set('folders', folders); } store.set('folders', folders);