mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 20:31:37 -05:00
Fix diff editor not opening on slow machines
This commit is contained in:
@@ -288,11 +288,11 @@ export class DiffViewProvider {
|
|||||||
uri,
|
uri,
|
||||||
`${fileName}: ${fileExists ? "Original ↔ Cline's Changes" : "New File"} (Editable)`
|
`${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(() => {
|
setTimeout(() => {
|
||||||
disposable.dispose()
|
disposable.dispose()
|
||||||
reject(new Error("Failed to open diff editor"))
|
reject(new Error("Failed to open diff editor, please try again..."))
|
||||||
}, 5_000)
|
}, 10_000)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user