mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
#406 show/hide reult window
This commit is contained in:
parent
ed71ef312d
commit
9bcc61551c
@ -17,6 +17,14 @@
|
||||
testEnabled: () => getCurrentEditor()?.isSqlEditor(),
|
||||
onClick: () => getCurrentEditor().insertSqlJoin(),
|
||||
});
|
||||
registerCommand({
|
||||
id: 'query.toggleVisibleResultTabs',
|
||||
category: 'Query',
|
||||
name: 'Toggle visible result tabs',
|
||||
keyText: 'CtrlOrCommand+Shift+R',
|
||||
testEnabled: () => !!getCurrentEditor(),
|
||||
onClick: () => getCurrentEditor().toggleVisibleResultTabs(),
|
||||
});
|
||||
registerFileCommands({
|
||||
idPrefix: 'query',
|
||||
category: 'Query',
|
||||
@ -144,6 +152,10 @@
|
||||
return !!conid && (!$connection?.isReadOnly || driver?.readOnlySessions);
|
||||
}
|
||||
|
||||
export function toggleVisibleResultTabs() {
|
||||
visibleResultTabs = !visibleResultTabs;
|
||||
}
|
||||
|
||||
async function executeCore(sql, startLine = 0) {
|
||||
if (busy) return;
|
||||
if (!sql || !sql.trim()) {
|
||||
@ -279,6 +291,8 @@
|
||||
{ divider: true },
|
||||
{ command: 'query.find' },
|
||||
{ command: 'query.replace' },
|
||||
{ divider: true },
|
||||
{ command: 'query.toggleVisibleResultTabs' },
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user