mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 20:31:37 -05:00
Remove reporting problems to claude for now
This commit is contained in:
@@ -1756,37 +1756,37 @@ ${
|
|||||||
}`
|
}`
|
||||||
|
|
||||||
// Get diagnostics for all open files in the workspace
|
// Get diagnostics for all open files in the workspace
|
||||||
const diagnostics = vscode.languages.getDiagnostics()
|
// const diagnostics = vscode.languages.getDiagnostics()
|
||||||
const relevantDiagnostics = diagnostics.filter(([_, fileDiagnostics]) =>
|
// const relevantDiagnostics = diagnostics.filter(([_, fileDiagnostics]) =>
|
||||||
fileDiagnostics.some(
|
// fileDiagnostics.some(
|
||||||
(d) =>
|
// (d) =>
|
||||||
d.severity === vscode.DiagnosticSeverity.Error || d.severity === vscode.DiagnosticSeverity.Warning
|
// d.severity === vscode.DiagnosticSeverity.Error || d.severity === vscode.DiagnosticSeverity.Warning
|
||||||
)
|
// )
|
||||||
)
|
// )
|
||||||
|
|
||||||
if (relevantDiagnostics.length > 0) {
|
// if (relevantDiagnostics.length > 0) {
|
||||||
details += "\n\n# VSCode Workspace Diagnostics"
|
// details += "\n\n# VSCode Workspace Diagnostics"
|
||||||
for (const [uri, fileDiagnostics] of relevantDiagnostics) {
|
// for (const [uri, fileDiagnostics] of relevantDiagnostics) {
|
||||||
const relativePath = path.relative(cwd, uri.fsPath)
|
// const relativePath = path.relative(cwd, uri.fsPath)
|
||||||
details += `\n## ${relativePath}:`
|
// details += `\n## ${relativePath}:`
|
||||||
for (const diagnostic of fileDiagnostics) {
|
// for (const diagnostic of fileDiagnostics) {
|
||||||
if (
|
// if (
|
||||||
diagnostic.severity === vscode.DiagnosticSeverity.Error ||
|
// diagnostic.severity === vscode.DiagnosticSeverity.Error ||
|
||||||
diagnostic.severity === vscode.DiagnosticSeverity.Warning
|
// diagnostic.severity === vscode.DiagnosticSeverity.Warning
|
||||||
) {
|
// ) {
|
||||||
let severity = diagnostic.severity === vscode.DiagnosticSeverity.Error ? "Error" : "Warning"
|
// let severity = diagnostic.severity === vscode.DiagnosticSeverity.Error ? "Error" : "Warning"
|
||||||
const line = diagnostic.range.start.line + 1 // VSCode lines are 0-indexed
|
// const line = diagnostic.range.start.line + 1 // VSCode lines are 0-indexed
|
||||||
details += `\n- [${severity}] Line ${line}: ${diagnostic.message}`
|
// details += `\n- [${severity}] Line ${line}: ${diagnostic.message}`
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
const busyTerminals = this.terminalManager.getBusyTerminals()
|
const busyTerminals = this.terminalManager.getBusyTerminals()
|
||||||
if (busyTerminals.length > 0) {
|
if (busyTerminals.length > 0) {
|
||||||
details += "\n\n# Active Terminals"
|
details += "\n\n# Active Terminals"
|
||||||
for (const busyTerminal of busyTerminals) {
|
for (const busyTerminal of busyTerminals) {
|
||||||
details += `\n## $ ${busyTerminal.lastCommand}`
|
details += `\n## ${busyTerminal.lastCommand}`
|
||||||
const newOutput = this.terminalManager.getUnretrievedOutput(busyTerminal.id)
|
const newOutput = this.terminalManager.getUnretrievedOutput(busyTerminal.id)
|
||||||
if (newOutput) {
|
if (newOutput) {
|
||||||
details += `\n...\n${newOutput}`
|
details += `\n...\n${newOutput}`
|
||||||
|
|||||||
Reference in New Issue
Block a user