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 (