From 5a94f6434b1c01f7cafd5022eac4861d97fe3fc7 Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Wed, 16 Oct 2024 10:02:35 -0400 Subject: [PATCH] Fix diff editor not opening on slow machines --- src/integrations/editor/DiffViewProvider.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/integrations/editor/DiffViewProvider.ts b/src/integrations/editor/DiffViewProvider.ts index 206d206..ce011ee 100644 --- a/src/integrations/editor/DiffViewProvider.ts +++ b/src/integrations/editor/DiffViewProvider.ts @@ -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) }) }