mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 07:46:00 +00:00
export working
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user