mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 20:31:37 -05:00
Make diff view left side readonly so users don't accidentally edit it
This commit is contained in:
@@ -815,11 +815,9 @@ export class ClaudeDev {
|
||||
|
||||
vscode.commands.executeCommand(
|
||||
"vscode.diff",
|
||||
fileExists
|
||||
? vscode.Uri.file(absolutePath)
|
||||
: vscode.Uri.parse(`claude-dev-diff:${path.basename(absolutePath)}`).with({
|
||||
query: Buffer.from("").toString("base64"),
|
||||
}),
|
||||
vscode.Uri.parse(`claude-dev-diff:${path.basename(absolutePath)}`).with({
|
||||
query: Buffer.from(originalContent).toString("base64"),
|
||||
}),
|
||||
vscode.Uri.file(tempFilePath),
|
||||
`${path.basename(absolutePath)}: ${fileExists ? "Original ↔ Claude's Changes" : "New File"} (Editable)`
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user