From 7aee6628e75eb35b712b0ea3dd210e0482762418 Mon Sep 17 00:00:00 2001 From: "Visal .In" Date: Tue, 10 Sep 2024 19:14:51 +0700 Subject: [PATCH] add schema to the extension --- src/components/gui/sql-editor/index.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/gui/sql-editor/index.tsx b/src/components/gui/sql-editor/index.tsx index 6bc0997..dddac6d 100644 --- a/src/components/gui/sql-editor/index.tsx +++ b/src/components/gui/sql-editor/index.tsx @@ -137,6 +137,7 @@ const SqlEditor = forwardRef( } else { sqlDialect = sql({ dialect: MySQLDialect, + schema, }); } @@ -153,7 +154,13 @@ const SqlEditor = forwardRef( if (onCursorChange) onCursorChange(pos, lineNumber, columnNumber); }), ].filter(Boolean) as Extension[]; - }, [dialect, onCursorChange]); + }, [ + dialect, + onCursorChange, + keyExtensions, + schema, + tableNameHighlightPlugin, + ]); return (