@lvce-editor/main-area-worker 9.71.3 → 9.72.1

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.
@@ -3935,6 +3935,7 @@ const SplitEditorGroupButton = 'EditorGroupActionButton SplitEditorGroupButton';
3935
3935
  const MaskIconPreview = 'MaskIcon MaskIconPreview';
3936
3936
  const MaskIconCircleFilled = 'MaskIcon MaskIconCircleFilled';
3937
3937
  const MaskIconClose = 'MaskIcon MaskIconClose';
3938
+ const MaskIconDebugAlt2 = 'MaskIcon MaskIconDebugAlt2';
3938
3939
  const MaskIconExtensions = 'MaskIcon MaskIconExtensions';
3939
3940
  const MaskIconRecordKey = 'MaskIcon MaskIconRecordKey';
3940
3941
  const MaskIconSearch = 'MaskIcon MaskIconSearch';
@@ -4417,6 +4418,7 @@ const renderTabActions = (isDirty, tabIndex, groupIndex) => {
4417
4418
 
4418
4419
  const ExtensionDetailScheme = 'extension-detail://';
4419
4420
  const KeyBindingsUri = 'app://keybindings';
4421
+ const ProcessExplorerScheme = 'process-explorer://';
4420
4422
  const RunningExtensionsScheme = 'running-extensions://';
4421
4423
  const SearchEditorScheme = 'search-editor://';
4422
4424
  const SettingsScheme = 'settings://';
@@ -4442,6 +4444,9 @@ const renderTabIcon = tab => {
4442
4444
  if (tab.uri === KeyBindingsUri) {
4443
4445
  return renderMaskIcon(MaskIconRecordKey);
4444
4446
  }
4447
+ if (tab.uri?.startsWith(ProcessExplorerScheme)) {
4448
+ return renderMaskIcon(MaskIconDebugAlt2);
4449
+ }
4445
4450
  if (tab.uri?.startsWith(ExtensionDetailScheme)) {
4446
4451
  return renderMaskIcon(MaskIconExtensions);
4447
4452
  }
@@ -8507,11 +8512,15 @@ const moveIntoNewWindow = async state => {
8507
8512
  return state;
8508
8513
  }
8509
8514
  const tab = group.tabs.find(tab => tab.id === activeTabId);
8510
- if (!tab?.uri) {
8515
+ if (!tab || tab.terminal) {
8511
8516
  return state;
8512
8517
  }
8513
- await invoke$3('ElectronWindow.openNewWithUri', tab.uri);
8514
- return closeTabAndSave(state, group.id, activeTabId);
8518
+ const editorInput = tab.editorInput ?? normalizeTabEditorInput(tab).editorInput;
8519
+ if (!editorInput) {
8520
+ return state;
8521
+ }
8522
+ await invoke$3('ElectronWindow.openNewWithEditorInput', editorInput, tab.editorUid, tab.isDirty);
8523
+ return closeTabWithViewlet(state, group.id, activeTabId);
8515
8524
  };
8516
8525
 
8517
8526
  const newWindow = async state => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-area-worker",
3
- "version": "9.71.3",
3
+ "version": "9.72.1",
4
4
  "description": "Main Area Worker",
5
5
  "repository": {
6
6
  "type": "git",