@lvce-editor/main-area-worker 9.71.3 → 9.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8507,11 +8507,15 @@ const moveIntoNewWindow = async state => {
|
|
|
8507
8507
|
return state;
|
|
8508
8508
|
}
|
|
8509
8509
|
const tab = group.tabs.find(tab => tab.id === activeTabId);
|
|
8510
|
-
if (!tab
|
|
8510
|
+
if (!tab || tab.terminal) {
|
|
8511
8511
|
return state;
|
|
8512
8512
|
}
|
|
8513
|
-
|
|
8514
|
-
|
|
8513
|
+
const editorInput = tab.editorInput ?? normalizeTabEditorInput(tab).editorInput;
|
|
8514
|
+
if (!editorInput) {
|
|
8515
|
+
return state;
|
|
8516
|
+
}
|
|
8517
|
+
await invoke$3('ElectronWindow.openNewWithEditorInput', editorInput, tab.editorUid, tab.isDirty);
|
|
8518
|
+
return closeTabWithViewlet(state, group.id, activeTabId);
|
|
8515
8519
|
};
|
|
8516
8520
|
|
|
8517
8521
|
const newWindow = async state => {
|