Refactor code by removing unnecessary comments and adjusting line changes handling
This commit is contained in:
20
main.js
20
main.js
@@ -73,18 +73,6 @@ if (Array.isArray(folders)) {
|
|||||||
}));
|
}));
|
||||||
store.set('folders', folders);
|
store.set('folders', folders);
|
||||||
}
|
}
|
||||||
//test
|
|
||||||
//test
|
|
||||||
//test
|
|
||||||
//test
|
|
||||||
//test
|
|
||||||
//test
|
|
||||||
//test
|
|
||||||
//test
|
|
||||||
//test
|
|
||||||
//test
|
|
||||||
//test
|
|
||||||
//test
|
|
||||||
// Map zum Speichern der Watcher pro Ordner
|
// Map zum Speichern der Watcher pro Ordner
|
||||||
const repoWatchers = new Map();
|
const repoWatchers = new Map();
|
||||||
|
|
||||||
@@ -579,10 +567,12 @@ async function autoCommit(folderPath, message) {
|
|||||||
const threshold = store.get('intelligentCommitThreshold') || 10;
|
const threshold = store.get('intelligentCommitThreshold') || 10;
|
||||||
if (folders[idx].linesChanged >= threshold) {
|
if (folders[idx].linesChanged >= threshold) {
|
||||||
debug('Congratulations! You changed enough lines of code :)');
|
debug('Congratulations! You changed enough lines of code :)');
|
||||||
folders[idx].linesChanged = 0;
|
//folders[idx].linesChanged = 0;
|
||||||
const cands = folders[idx].llmCandidates;
|
//const cands = folders[idx].llmCandidates;
|
||||||
folders[idx].llmCandidates = [];
|
//folders[idx].llmCandidates = [];
|
||||||
await runLLMCommitRewrite(folderPath, cands);
|
await runLLMCommitRewrite(folderPath, cands);
|
||||||
|
folders[idx].linesChanged = 0; // !!!!!!!!!!!!!!!!!!!
|
||||||
|
folders[idx].llmCandidates = [];
|
||||||
store.set('folders', folders);
|
store.set('folders', folders);
|
||||||
}
|
}
|
||||||
store.set('folders', folders);
|
store.set('folders', folders);
|
||||||
|
|||||||
Reference in New Issue
Block a user