fix(editor): implement missing methods, fix cursor position clearing (#38603)

This commit is contained in:
Michael S. Molina
2026-03-13 09:06:55 -03:00
committed by GitHub
parent f5383263bc
commit 1867336907
4 changed files with 103 additions and 4 deletions

View File

@@ -694,6 +694,12 @@ const setSchema: typeof sqlLabApi.setSchema = async (schema: string | null) => {
store.dispatch(queryEditorSetSchema(queryEditor ?? null, schema));
};
const setActivePanel: typeof sqlLabApi.setActivePanel = async (
panelId: string,
) => {
store.dispatch({ type: SET_ACTIVE_SOUTHPANE_TAB, tabId: panelId });
};
export const sqlLab: typeof sqlLabApi = {
CTASMethod,
getActivePanel,
@@ -719,6 +725,7 @@ export const sqlLab: typeof sqlLabApi = {
setDatabase,
setCatalog,
setSchema,
setActivePanel,
};
// Export all models