feat(sqllab): add getActivePanel API for panel visibility tracking (#37448)

This commit is contained in:
Michael S. Molina
2026-01-26 13:18:01 -03:00
committed by GitHub
parent 8aebfe1105
commit 95a465ad7c
2 changed files with 20 additions and 0 deletions

View File

@@ -215,6 +215,11 @@ function createQueryErrorContext(
const getCurrentTab: typeof sqlLabApi.getCurrentTab = () =>
getTab(activeEditorId());
const getActivePanel: typeof sqlLabApi.getActivePanel = () => {
const { activeSouthPaneTab } = getSqlLabState();
return new Panel(String(activeSouthPaneTab));
};
const getTabs: typeof sqlLabApi.getTabs = () => {
const { queryEditors } = getSqlLabState();
return queryEditors
@@ -389,6 +394,7 @@ const onDidChangeTabTitle: typeof sqlLabApi.onDidChangeTabTitle = (
export const sqlLab: typeof sqlLabApi = {
CTASMethod,
getActivePanel,
getCurrentTab,
onDidChangeEditorDatabase,
onDidChangeEditorSchema,