Skip to content

Commit 38334b1

Browse files
committed
fix: downgrade console.error to console.debug in DocumentHistoryTracker.push()
When onDidChangeVisibleTextEditors fires, deleteChain() calls push() on the DocumentHistoryTracker for the previous request filepath. Because onDidOpenTextDocument is currently disabled (pending PR continuedev#8364 merge), documents are never pre-added via addDocument(), so push() always takes the fallback path and logs a console.error on every editor switch. The fallback in push() already handles this gracefully by calling addDocument(), making the error log misleading noise. Downgrade it to console.debug so it remains accessible for debugging without polluting the Extension Host output. Fixes continuedev#11919
1 parent a1ead04 commit 38334b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/nextEdit/DocumentHistoryTracker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class DocumentHistoryTracker {
6161
const documentHistory = this.documentContentHistoryMap.get(documentPath);
6262

6363
if (!astHistory || !documentHistory) {
64-
console.error(`Document ${documentPath} not found in AST tracker`);
64+
console.debug(`Document ${documentPath} not found in AST tracker, adding it`);
6565
this.addDocument(documentPath, documentContent, ast);
6666
return; // Early return - document was added with initial state
6767
}

0 commit comments

Comments
 (0)