Close current diff view when showing new edit right after; fix thinking tags rendering

This commit is contained in:
Saoud Rizwan
2024-07-31 19:25:26 -04:00
parent 624a4e4ed6
commit 31d8472f59
2 changed files with 7 additions and 3 deletions

View File

@@ -418,7 +418,7 @@ export class ClaudeDev {
await fs.writeFile(filePath, newContent)
// Finish by opening the edited file in the editor
vscode.window.showTextDocument(vscode.Uri.file(filePath), { preview: false })
await vscode.window.showTextDocument(vscode.Uri.file(filePath), { preview: false })
return `Changes applied to ${filePath}:\n${diffResult}`
} else {
const fileName = path.basename(filePath)
@@ -449,7 +449,7 @@ export class ClaudeDev {
}
await fs.mkdir(path.dirname(filePath), { recursive: true })
await fs.writeFile(filePath, newContent)
vscode.window.showTextDocument(vscode.Uri.file(filePath), { preview: false })
await vscode.window.showTextDocument(vscode.Uri.file(filePath), { preview: false })
return `New file created and content written to ${filePath}`
}
} catch (error) {