mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-10 22:41:14 +00:00
Fix diff editor not opening on slow machines
This commit is contained in:
parent
dff81b9d09
commit
5a94f6434b
1 changed files with 3 additions and 3 deletions
|
|
@ -288,11 +288,11 @@ export class DiffViewProvider {
|
|||
uri,
|
||||
`${fileName}: ${fileExists ? "Original ↔ Cline's Changes" : "New File"} (Editable)`
|
||||
)
|
||||
// This should never happen but if it does it's worth investigating
|
||||
// This may happen on very slow machines ie project idx
|
||||
setTimeout(() => {
|
||||
disposable.dispose()
|
||||
reject(new Error("Failed to open diff editor"))
|
||||
}, 5_000)
|
||||
reject(new Error("Failed to open diff editor, please try again..."))
|
||||
}, 10_000)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue