"chore: added content param to add tab function"
mellbacon committed
Jul 12, 2023 at 19:00 UTC
b0dd1f291cbefe5762fdc3258ac37d10a8fb015e
1 file changed
+2
-2
src/lib/EditorTabList.svelte
+2
-2
@@ -36,8 +36,8 @@
36
37
const editorTab = new Tab(EditorTab);
38
39
- export function addTab(path?: string, label?: string) {
40
- editorTab.addTab(path, label);
39
+ export function addTab(path?: string, label?: string, content = null) {
40
+ editorTab.addTab(path, label, content);
41
}
42
export function addEditorTab(path?: string, label?: string) {
43
editorTab.addEditorTab(path, label);