jsonl preview

This commit is contained in:
Jan Prochazka
2022-02-17 14:56:48 +01:00
parent 2946d8a1de
commit 108a49b3e8
2 changed files with 89 additions and 26 deletions

View File

@@ -266,11 +266,16 @@ registerCommand({
name: 'JSON Lines',
menuName: 'New JSON lines file',
onClick: () => {
openNewTab({
title: 'Lines #',
icon: 'img archive',
tabComponent: 'JsonLinesEditorTab',
});
openNewTab(
{
title: 'Lines #',
icon: 'img archive',
tabComponent: 'JsonLinesEditorTab',
},
{
editor: '{"col1": "val1", "col2": "val2"}',
}
);
},
});