Browse Source

Minor fixes

Saoud Rizwan 1 year ago
parent
commit
b82f2b7691
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/ClaudeDev.ts
  2. 1 1
      src/integrations/DiagnosticsMonitor.ts

+ 2 - 2
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

+ 1 - 1
src/integrations/DiagnosticsMonitor.ts

@@ -61,7 +61,7 @@ class DiagnosticsMonitor {
 		return this.waitForUpdatedDiagnostics()
 	}
 
-	private async waitForUpdatedDiagnostics(timeout: number = 500): Promise<FileDiagnostics> {
+	private async waitForUpdatedDiagnostics(timeout: number = 300): Promise<FileDiagnostics> {
 		return new Promise((resolve, reject) => {
 			const timer = setTimeout(() => {
 				cleanup()