From f35d7bc91a139294e0d96dcfe3b381e50ae30eb1 Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Mon, 9 Sep 2024 09:49:16 -0400 Subject: [PATCH] Remove reporting problems to claude for now --- src/ClaudeDev.ts | 50 ++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/ClaudeDev.ts b/src/ClaudeDev.ts index 10a7c4d..f81a189 100644 --- a/src/ClaudeDev.ts +++ b/src/ClaudeDev.ts @@ -1756,37 +1756,37 @@ ${ }` // Get diagnostics for all open files in the workspace - const diagnostics = vscode.languages.getDiagnostics() - const relevantDiagnostics = diagnostics.filter(([_, fileDiagnostics]) => - fileDiagnostics.some( - (d) => - d.severity === vscode.DiagnosticSeverity.Error || d.severity === vscode.DiagnosticSeverity.Warning - ) - ) + // const diagnostics = vscode.languages.getDiagnostics() + // const relevantDiagnostics = diagnostics.filter(([_, fileDiagnostics]) => + // fileDiagnostics.some( + // (d) => + // d.severity === vscode.DiagnosticSeverity.Error || d.severity === vscode.DiagnosticSeverity.Warning + // ) + // ) - if (relevantDiagnostics.length > 0) { - details += "\n\n# VSCode Workspace Diagnostics" - for (const [uri, fileDiagnostics] of relevantDiagnostics) { - const relativePath = path.relative(cwd, uri.fsPath) - details += `\n## ${relativePath}:` - for (const diagnostic of fileDiagnostics) { - if ( - diagnostic.severity === vscode.DiagnosticSeverity.Error || - diagnostic.severity === vscode.DiagnosticSeverity.Warning - ) { - let severity = diagnostic.severity === vscode.DiagnosticSeverity.Error ? "Error" : "Warning" - const line = diagnostic.range.start.line + 1 // VSCode lines are 0-indexed - details += `\n- [${severity}] Line ${line}: ${diagnostic.message}` - } - } - } - } + // if (relevantDiagnostics.length > 0) { + // details += "\n\n# VSCode Workspace Diagnostics" + // for (const [uri, fileDiagnostics] of relevantDiagnostics) { + // const relativePath = path.relative(cwd, uri.fsPath) + // details += `\n## ${relativePath}:` + // for (const diagnostic of fileDiagnostics) { + // if ( + // diagnostic.severity === vscode.DiagnosticSeverity.Error || + // diagnostic.severity === vscode.DiagnosticSeverity.Warning + // ) { + // let severity = diagnostic.severity === vscode.DiagnosticSeverity.Error ? "Error" : "Warning" + // const line = diagnostic.range.start.line + 1 // VSCode lines are 0-indexed + // details += `\n- [${severity}] Line ${line}: ${diagnostic.message}` + // } + // } + // } + // } const busyTerminals = this.terminalManager.getBusyTerminals() if (busyTerminals.length > 0) { details += "\n\n# Active Terminals" for (const busyTerminal of busyTerminals) { - details += `\n## $ ${busyTerminal.lastCommand}` + details += `\n## ${busyTerminal.lastCommand}` const newOutput = this.terminalManager.getUnretrievedOutput(busyTerminal.id) if (newOutput) { details += `\n...\n${newOutput}`