mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 12:51:17 -05:00
Update system prompt and environment details to only focus on relevant errors rather than addressing all workspace warnings
This commit is contained in:
@@ -61,14 +61,11 @@ class DiagnosticsMonitor {
|
||||
let timeout = 300
|
||||
|
||||
// if diagnostics contain existing errors (since the check above didn't trigger) then it's likely claude just did something that should have fixed the error, so we'll give a longer grace period for diagnostics to catch up
|
||||
const hasErrorsOrWarnings = currentDiagnostics.some(([_, diagnostics]) =>
|
||||
diagnostics.some(
|
||||
(d) =>
|
||||
d.severity === vscode.DiagnosticSeverity.Error || d.severity === vscode.DiagnosticSeverity.Warning
|
||||
)
|
||||
const hasErrors = currentDiagnostics.some(([_, diagnostics]) =>
|
||||
diagnostics.some((d) => d.severity === vscode.DiagnosticSeverity.Error)
|
||||
)
|
||||
if (hasErrorsOrWarnings) {
|
||||
console.log("Existing errors or warnings detected, extending timeout", currentDiagnostics)
|
||||
if (hasErrors) {
|
||||
console.log("Existing errors detected, extending timeout", currentDiagnostics)
|
||||
timeout = 5_000
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user