mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 10:16:03 +00:00
recent database switch in main menu
This commit is contained in:
@@ -62,6 +62,7 @@ module.exports = [
|
|||||||
submenu: [
|
submenu: [
|
||||||
{ command: 'database.search', hideDisabled: true },
|
{ command: 'database.search', hideDisabled: true },
|
||||||
{ command: 'commandPalette.show', hideDisabled: true },
|
{ command: 'commandPalette.show', hideDisabled: true },
|
||||||
|
{ command: 'database.switch', hideDisabled: true },
|
||||||
{ divider: true },
|
{ divider: true },
|
||||||
{ command: 'sql.generator', hideDisabled: true },
|
{ command: 'sql.generator', hideDisabled: true },
|
||||||
{ command: 'file.import', hideDisabled: true },
|
{ command: 'file.import', hideDisabled: true },
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ registerCommand({
|
|||||||
id: 'database.switch',
|
id: 'database.switch',
|
||||||
category: 'Database',
|
category: 'Database',
|
||||||
name: 'Change to recent',
|
name: 'Change to recent',
|
||||||
|
menuName: 'Switch recent database',
|
||||||
keyText: 'CtrlOrCommand+D',
|
keyText: 'CtrlOrCommand+D',
|
||||||
getSubCommands: () => getRecentDatabases().map(switchDatabaseCommand),
|
getSubCommands: () => getRecentDatabases().map(switchDatabaseCommand),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user