Remove reporting problems to claude for now

This commit is contained in:
Saoud Rizwan
2024-09-09 09:49:16 -04:00
parent d71cccc2a4
commit f35d7bc91a

View File

@@ -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}`