new json lines command

This commit is contained in:
Jan Prochazka
2022-02-13 10:47:50 +01:00
parent 62f3c2bb3d
commit b8584db48f
2 changed files with 17 additions and 5 deletions

View File

@@ -21,6 +21,7 @@ module.exports = [
{ 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 },
@@ -52,11 +53,7 @@ module.exports = [
},
{
label: 'Tools',
submenu: [
{ command: 'sql.generator' },
{ command: 'file.import' },
{ command: 'new.modelCompare' },
],
submenu: [{ command: 'sql.generator' }, { command: 'file.import' }, { command: 'new.modelCompare' }],
},
{
label: 'Help',

View File

@@ -259,6 +259,21 @@ registerCommand({
},
});
registerCommand({
id: 'new.jsonl',
category: 'New',
icon: 'img archive',
name: 'JSON Lines',
menuName: 'New JSON lines file',
onClick: () => {
openNewTab({
title: 'Lines #',
icon: 'img archive',
tabComponent: 'JsonLinesEditorTab',
});
},
});
registerCommand({
id: 'new.sqliteDatabase',
category: 'New',