diff --git a/src/ClaudeDev.ts b/src/ClaudeDev.ts index cb2815f..14d237a 100644 --- a/src/ClaudeDev.ts +++ b/src/ClaudeDev.ts @@ -1850,7 +1850,7 @@ ${this.customInstructions.trim()} const busyTerminals = this.terminalManager.getTerminals(true) if (busyTerminals.length > 0 || this.didEditFile) { - await delay(500) // delay after saving file to let terminals/diagnostics catch up + await delay(300) // delay after saving file to let terminals/diagnostics catch up } if (busyTerminals.length > 0) { @@ -1870,7 +1870,7 @@ ${this.customInstructions.trim()} d.severity === vscode.DiagnosticSeverity.Error || d.severity === vscode.DiagnosticSeverity.Warning ) if (problems.length > 0) { - diagnosticsDetails += `\n## ${path.relative(cwd, uri.fsPath)}:` + diagnosticsDetails += `\n## ${path.relative(cwd, uri.fsPath)}` for (const diagnostic of problems) { let severity = diagnostic.severity === vscode.DiagnosticSeverity.Error ? "Error" : "Warning" const line = diagnostic.range.start.line + 1 // VSCode lines are 0-indexed diff --git a/src/integrations/DiagnosticsMonitor.ts b/src/integrations/DiagnosticsMonitor.ts index cbbb863..2e6cd1b 100644 --- a/src/integrations/DiagnosticsMonitor.ts +++ b/src/integrations/DiagnosticsMonitor.ts @@ -61,7 +61,7 @@ class DiagnosticsMonitor { return this.waitForUpdatedDiagnostics() } - private async waitForUpdatedDiagnostics(timeout: number = 500): Promise { + private async waitForUpdatedDiagnostics(timeout: number = 300): Promise { return new Promise((resolve, reject) => { const timer = setTimeout(() => { cleanup()