export working

This commit is contained in:
Jan Prochazka
2021-03-13 12:04:33 +01:00
parent 423f876d68
commit 8770034bf5
12 changed files with 281 additions and 40 deletions

View File

@@ -1,7 +1,7 @@
<script lang="ts" context="module">
const lastFocusedEditor = writable(null);
const currentEditor = derived([lastFocusedEditor, activeTabId], ([editor, tabid]) =>
editor?.getTabId() == tabid ? editor : null
editor?.getTabId && editor?.getTabId() == tabid ? editor : null
);
registerFileCommands({
@@ -53,10 +53,8 @@
const instance = get_current_component();
let domEditor;
$: if ($tabVisible && domEditor) {
domEditor?.getEditor()?.focus();
}