@lvce-editor/main-area-worker 9.21.0 → 9.22.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.
- package/dist/mainAreaWorkerMain.js +40 -17
- package/package.json +1 -1
|
@@ -2464,6 +2464,7 @@ const getEditorInputEditorType = editorInput => {
|
|
|
2464
2464
|
case 'diff-editor':
|
|
2465
2465
|
case 'extension-detail-view':
|
|
2466
2466
|
case 'image':
|
|
2467
|
+
case 'process-explorer':
|
|
2467
2468
|
case 'video':
|
|
2468
2469
|
return 'custom';
|
|
2469
2470
|
case 'editor':
|
|
@@ -2481,6 +2482,8 @@ const getEditorInputUri = editorInput => {
|
|
|
2481
2482
|
return editorInput.uri;
|
|
2482
2483
|
case 'extension-detail-view':
|
|
2483
2484
|
return `extension-detail://${editorInput.extensionId}`;
|
|
2485
|
+
case 'process-explorer':
|
|
2486
|
+
return 'process-explorer://';
|
|
2484
2487
|
}
|
|
2485
2488
|
};
|
|
2486
2489
|
|
|
@@ -2545,6 +2548,11 @@ const getEditorInputFromUri = uri => {
|
|
|
2545
2548
|
};
|
|
2546
2549
|
}
|
|
2547
2550
|
}
|
|
2551
|
+
if (uri.startsWith('process-explorer://')) {
|
|
2552
|
+
return {
|
|
2553
|
+
type: 'process-explorer'
|
|
2554
|
+
};
|
|
2555
|
+
}
|
|
2548
2556
|
const extension = getLowerCaseExtension(uri);
|
|
2549
2557
|
if (imageExtensions.has(extension)) {
|
|
2550
2558
|
return {
|
|
@@ -2714,6 +2722,7 @@ const getViewletModuleId$1 = async uri => {
|
|
|
2714
2722
|
const DiffEditor = 'DiffEditor';
|
|
2715
2723
|
const EditorText = 'Editor';
|
|
2716
2724
|
const ExtensionDetail = 'ExtensionDetail';
|
|
2725
|
+
const ProcessExplorer = 'ProcessExplorer';
|
|
2717
2726
|
const QuickPick = 'QuickPick';
|
|
2718
2727
|
|
|
2719
2728
|
const getViewletModuleIdForEditorInput = async editorInput => {
|
|
@@ -2726,6 +2735,8 @@ const getViewletModuleIdForEditorInput = async editorInput => {
|
|
|
2726
2735
|
return getViewletModuleId$1(editorInput.uri);
|
|
2727
2736
|
case 'extension-detail-view':
|
|
2728
2737
|
return ExtensionDetail;
|
|
2738
|
+
case 'process-explorer':
|
|
2739
|
+
return ProcessExplorer;
|
|
2729
2740
|
}
|
|
2730
2741
|
};
|
|
2731
2742
|
|
|
@@ -3274,6 +3285,8 @@ const getEditorInputTitle = editorInput => {
|
|
|
3274
3285
|
return getLabel(editorInput.uri);
|
|
3275
3286
|
case 'extension-detail-view':
|
|
3276
3287
|
return editorInput.extensionId;
|
|
3288
|
+
case 'process-explorer':
|
|
3289
|
+
return 'Process Explorer';
|
|
3277
3290
|
}
|
|
3278
3291
|
};
|
|
3279
3292
|
|
|
@@ -3557,8 +3570,7 @@ const getIconsCached = (dirents, fileIconCache) => {
|
|
|
3557
3570
|
return dirents.map(dirent => fileIconCache[dirent]);
|
|
3558
3571
|
};
|
|
3559
3572
|
|
|
3560
|
-
const ExtensionDetailScheme = 'extension-detail://';
|
|
3561
|
-
const ExtensionIconName = 'extensions';
|
|
3573
|
+
const ExtensionDetailScheme$1 = 'extension-detail://';
|
|
3562
3574
|
const getBasename = uri => {
|
|
3563
3575
|
const lastSlashIndex = uri.lastIndexOf('/');
|
|
3564
3576
|
if (lastSlashIndex === -1) {
|
|
@@ -3569,7 +3581,7 @@ const getBasename = uri => {
|
|
|
3569
3581
|
const getMissingTabs = (tabs, fileIconCache) => {
|
|
3570
3582
|
const missingTabs = [];
|
|
3571
3583
|
for (const tab of tabs) {
|
|
3572
|
-
if (tab.uri && !(tab.uri in fileIconCache)) {
|
|
3584
|
+
if (tab.uri && !tab.uri.startsWith(ExtensionDetailScheme$1) && !(tab.uri in fileIconCache)) {
|
|
3573
3585
|
missingTabs.push(tab);
|
|
3574
3586
|
}
|
|
3575
3587
|
}
|
|
@@ -3577,13 +3589,6 @@ const getMissingTabs = (tabs, fileIconCache) => {
|
|
|
3577
3589
|
};
|
|
3578
3590
|
const tabToIconRequest = tab => {
|
|
3579
3591
|
const uri = tab.uri || '';
|
|
3580
|
-
if (uri.startsWith(ExtensionDetailScheme)) {
|
|
3581
|
-
return {
|
|
3582
|
-
name: ExtensionIconName,
|
|
3583
|
-
path: uri,
|
|
3584
|
-
type: Directory
|
|
3585
|
-
};
|
|
3586
|
-
}
|
|
3587
3592
|
return {
|
|
3588
3593
|
name: getBasename(uri),
|
|
3589
3594
|
path: uri,
|
|
@@ -4123,6 +4128,7 @@ const SplitEditorGroupButton = 'SplitEditorGroupButton';
|
|
|
4123
4128
|
const MaskIconPreview = 'MaskIcon MaskIconPreview';
|
|
4124
4129
|
const MaskIconCircleFilled = 'MaskIcon MaskIconCircleFilled';
|
|
4125
4130
|
const MaskIconClose = 'MaskIcon MaskIconClose';
|
|
4131
|
+
const MaskIconExtensions = 'MaskIcon MaskIconExtensions';
|
|
4126
4132
|
const TextEditor = 'TextEditor';
|
|
4127
4133
|
const TextEditorLoading = 'TextEditor TextEditor--loading';
|
|
4128
4134
|
const EditorContentLoading = 'EditorContent EditorContent--loading';
|
|
@@ -5781,6 +5787,28 @@ const renderTabActions = (isDirty, tabIndex, groupIndex) => {
|
|
|
5781
5787
|
}];
|
|
5782
5788
|
};
|
|
5783
5789
|
|
|
5790
|
+
const ExtensionDetailScheme = 'extension-detail://';
|
|
5791
|
+
const renderTabIcon = tab => {
|
|
5792
|
+
if (tab.uri?.startsWith(ExtensionDetailScheme)) {
|
|
5793
|
+
return [{
|
|
5794
|
+
childCount: 1,
|
|
5795
|
+
className: TabIcon,
|
|
5796
|
+
role: None$1,
|
|
5797
|
+
type: Div
|
|
5798
|
+
}, {
|
|
5799
|
+
childCount: 0,
|
|
5800
|
+
className: MaskIconExtensions,
|
|
5801
|
+
type: Div
|
|
5802
|
+
}];
|
|
5803
|
+
}
|
|
5804
|
+
return [{
|
|
5805
|
+
childCount: 0,
|
|
5806
|
+
className: TabIcon,
|
|
5807
|
+
role: None$1,
|
|
5808
|
+
src: tab.icon,
|
|
5809
|
+
type: Img
|
|
5810
|
+
}];
|
|
5811
|
+
};
|
|
5784
5812
|
const renderTab = (tab, isActive, tabIndex, groupIndex) => {
|
|
5785
5813
|
const closeButtonNodes = renderTabActions(tab.isDirty, tabIndex, groupIndex);
|
|
5786
5814
|
let className = MainTab;
|
|
@@ -5804,13 +5832,7 @@ const renderTab = (tab, isActive, tabIndex, groupIndex) => {
|
|
|
5804
5832
|
role: 'tab',
|
|
5805
5833
|
title: tab.uriTitle || tab.uri || tab.title,
|
|
5806
5834
|
type: Div
|
|
5807
|
-
}, {
|
|
5808
|
-
childCount: 0,
|
|
5809
|
-
className: TabIcon,
|
|
5810
|
-
role: None$1,
|
|
5811
|
-
src: tab.icon,
|
|
5812
|
-
type: Img
|
|
5813
|
-
}, {
|
|
5835
|
+
}, ...renderTabIcon(tab), {
|
|
5814
5836
|
childCount: 1,
|
|
5815
5837
|
className: TabTitle,
|
|
5816
5838
|
type: Span
|
|
@@ -6652,6 +6674,7 @@ const commandMap = {
|
|
|
6652
6674
|
'MainArea.handleTabContextMenu': wrapCommand(handleTabContextMenu),
|
|
6653
6675
|
'MainArea.handleUriChange': wrapCommand(handleUriChange),
|
|
6654
6676
|
'MainArea.handleWorkspaceChange': wrapCommand(handleWorkspaceChange),
|
|
6677
|
+
'MainArea.hasActiveTextEditor': wrapGetter(hasActiveTextEditor),
|
|
6655
6678
|
'MainArea.initialize': initialize,
|
|
6656
6679
|
'MainArea.loadContent': wrapCommand(loadContent),
|
|
6657
6680
|
'MainArea.moveIntoNewWindow': wrapCommand(moveIntoNewWindow),
|