From 840a022d2dba4f8716bcafdf463e14dcea854dff Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Tue, 21 Oct 2025 14:13:01 +0800 Subject: [PATCH] Add comment --- .../components/interfaces/SQLEditor/useDiffEditorLifecycle.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/studio/components/interfaces/SQLEditor/useDiffEditorLifecycle.ts b/apps/studio/components/interfaces/SQLEditor/useDiffEditorLifecycle.ts index d5d9f67f0ec..177b92f78ed 100644 --- a/apps/studio/components/interfaces/SQLEditor/useDiffEditorLifecycle.ts +++ b/apps/studio/components/interfaces/SQLEditor/useDiffEditorLifecycle.ts @@ -10,6 +10,9 @@ interface UseDiffEditorLifecycleParams { onDiffCleared?: () => void } +// This one's meant to solve a UI issue that seems to only be happening locally +// Happens when you use the inline assistant in the SQL Editor and accept the suggestion +// Error: TextModel got disposed before DiffEditorWidget model got reset export const useDiffEditorLifecycle = ({ editorRef, diffEditorRef,