main menu changes

This commit is contained in:
Jan Prochazka 2022-02-17 10:19:44 +01:00
parent 288cab0840
commit 2e410301bc
2 changed files with 14 additions and 8 deletions

View File

@ -5,12 +5,16 @@ module.exports = [
{ command: 'new.connection', hideDisabled: true },
{ command: 'new.sqliteDatabase', hideDisabled: true },
{ divider: true },
{ command: 'new.query', hideDisabled: true },
{ command: 'new.freetable', hideDisabled: true },
{ command: 'new.shell', hideDisabled: true },
{ command: 'new.jsonl', hideDisabled: true },
{ divider: true },
{ command: 'file.open', hideDisabled: true },
{ command: 'file.openArchive', hideDisabled: true },
{ divider: true },
{ command: 'group.save', hideDisabled: true },
{ command: 'group.saveAs', hideDisabled: true },
{ command: 'database.search', hideDisabled: true },
{ divider: true },
{ command: 'file.exit', hideDisabled: true },
],
@ -18,11 +22,6 @@ module.exports = [
{
label: 'Window',
submenu: [
{ command: 'new.query', hideDisabled: true },
{ command: 'new.freetable', hideDisabled: true },
{ command: 'new.shell', hideDisabled: true },
{ command: 'new.jsonl', hideDisabled: true },
{ divider: true },
{ command: 'tabs.closeTab', hideDisabled: true },
{ command: 'tabs.closeAll', hideDisabled: true },
],
@ -53,7 +52,14 @@ module.exports = [
},
{
label: 'Tools',
submenu: [{ command: 'sql.generator' }, { command: 'file.import' }, { command: 'new.modelCompare' }],
submenu: [
{ command: 'database.search', hideDisabled: true },
{ command: 'commandPalette.show', hideDisabled: true },
{ divider: true },
{ command: 'sql.generator', hideDisabled: true },
{ command: 'file.import', hideDisabled: true },
{ command: 'new.modelCompare', hideDisabled: true },
],
},
{
label: 'Help',

View File

@ -3,7 +3,7 @@
id: 'commandPalette.show',
category: 'Command palette',
name: 'Show',
toolbarName: 'Search',
toolbarName: 'Command palette',
toolbarOrder: 0,
keyText: 'F1',
toolbar: true,