mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 20:31:37 -05:00
Close current diff view when showing new edit right after; fix thinking tags rendering
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user