fix: correct indentation in CodeParser

This commit is contained in:
Roo Code 2025-12-30 05:45:04 +00:00
parent d96f9f44dc
commit 6d30caa34d

View file

@ -188,7 +188,7 @@ export class CodeParser implements ICodeParser {
// Check if the node meets the minimum character requirement
if (currentNode.text.length >= MIN_BLOCK_CHARS) {
// If it also exceeds the maximum character limit, try to break it down
if (currentNode.text.length > this.maxBlockChars * MAX_CHARS_TOLERANCE_FACTOR) {
if (currentNode.text.length > this.maxBlockChars * MAX_CHARS_TOLERANCE_FACTOR) {
if (currentNode.children.filter((child) => child !== null).length > 0) {
// If it has children, process them instead
queue.push(...currentNode.children.filter((child) => child !== null))