mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 05:26:00 +00:00
command enabling refactor
This commit is contained in:
@@ -6,12 +6,11 @@ import { changeTab } from './common';
|
||||
import SaveFileModal from '../modals/SaveFileModal.svelte';
|
||||
import registerCommand from '../commands/registerCommand';
|
||||
|
||||
export function saveTabEnabledStore(editorStore) {
|
||||
return derived(editorStore, editor => editor != null);
|
||||
}
|
||||
// export function saveTabEnabledStore(editorStore) {
|
||||
// return derived(editorStore, editor => editor != null);
|
||||
// }
|
||||
|
||||
export default function saveTabFile(editorStore, saveAs, folder, format, fileExtension) {
|
||||
const editor: any = get(editorStore);
|
||||
export default function saveTabFile(editor, saveAs, folder, format, fileExtension) {
|
||||
const tabs = get(openedTabs);
|
||||
const tabid = editor.getTabId();
|
||||
const data = editor.getData();
|
||||
|
||||
Reference in New Issue
Block a user