@lvce-editor/explorer-view 5.21.0 → 5.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/explorerViewWorkerMain.js +35 -27
- package/package.json +1 -1
|
@@ -149,8 +149,6 @@ const Copy$1 = 3;
|
|
|
149
149
|
const Rename$2 = 4;
|
|
150
150
|
const Remove = 5;
|
|
151
151
|
|
|
152
|
-
const Text = 12;
|
|
153
|
-
|
|
154
152
|
const Button$3 = 'event.button';
|
|
155
153
|
const ClientX = 'event.clientX';
|
|
156
154
|
const ClientY = 'event.clientY';
|
|
@@ -166,27 +164,6 @@ const ShiftKey = 'event.shiftKey';
|
|
|
166
164
|
const TargetName = 'event.target.name';
|
|
167
165
|
const TargetValue = 'event.target.value';
|
|
168
166
|
|
|
169
|
-
const Enter = 3;
|
|
170
|
-
const Escape = 8;
|
|
171
|
-
const Space = 9;
|
|
172
|
-
const End = 255;
|
|
173
|
-
const Home = 12;
|
|
174
|
-
const LeftArrow = 13;
|
|
175
|
-
const UpArrow = 14;
|
|
176
|
-
const RightArrow = 15;
|
|
177
|
-
const DownArrow = 16;
|
|
178
|
-
const Delete$1 = 18;
|
|
179
|
-
const KeyA = 29;
|
|
180
|
-
const KeyC = 31;
|
|
181
|
-
const KeyV = 50;
|
|
182
|
-
const KeyX = 52;
|
|
183
|
-
const F2 = 58;
|
|
184
|
-
const Star = 131;
|
|
185
|
-
|
|
186
|
-
const CtrlCmd = 1 << 11 >>> 0;
|
|
187
|
-
const Shift = 1 << 10 >>> 0;
|
|
188
|
-
const Alt = 1 << 9 >>> 0;
|
|
189
|
-
|
|
190
167
|
const FileSystemWorker$1 = 209;
|
|
191
168
|
const IconThemeWorker = 7009;
|
|
192
169
|
const RendererWorker = 1;
|
|
@@ -1903,7 +1880,7 @@ const Copy = 'Copy';
|
|
|
1903
1880
|
const CopyPath = 'Copy Path';
|
|
1904
1881
|
const CopyRelativePath = 'Copy Relative Path';
|
|
1905
1882
|
const Cut = 'Cut';
|
|
1906
|
-
const Delete = 'Delete';
|
|
1883
|
+
const Delete$1 = 'Delete';
|
|
1907
1884
|
const FileNameCannotStartWithSlash = 'A file or folder name cannot start with a slash.';
|
|
1908
1885
|
const FileOrFolderAlreadyExists = 'A file or folder **{PH1}** already exists at this location. Please choose a different name.';
|
|
1909
1886
|
const FileOrFolderNameMustBeProvider = 'A file or folder name must be provided.';
|
|
@@ -1952,7 +1929,7 @@ const rename = () => {
|
|
|
1952
1929
|
return i18nString(Rename);
|
|
1953
1930
|
};
|
|
1954
1931
|
const deleteItem = () => {
|
|
1955
|
-
return i18nString(Delete);
|
|
1932
|
+
return i18nString(Delete$1);
|
|
1956
1933
|
};
|
|
1957
1934
|
const refresh$1 = () => {
|
|
1958
1935
|
return i18nString(RefreshExplorer);
|
|
@@ -2523,6 +2500,29 @@ const Viewlet = 'Viewlet';
|
|
|
2523
2500
|
const Welcome = 'Welcome';
|
|
2524
2501
|
const WelcomeMessage = 'WelcomeMessage';
|
|
2525
2502
|
|
|
2503
|
+
const Text = 12;
|
|
2504
|
+
|
|
2505
|
+
const Enter = 3;
|
|
2506
|
+
const Escape = 8;
|
|
2507
|
+
const Space = 9;
|
|
2508
|
+
const End = 255;
|
|
2509
|
+
const Home = 12;
|
|
2510
|
+
const LeftArrow = 13;
|
|
2511
|
+
const UpArrow = 14;
|
|
2512
|
+
const RightArrow = 15;
|
|
2513
|
+
const DownArrow = 16;
|
|
2514
|
+
const Delete = 18;
|
|
2515
|
+
const KeyA = 29;
|
|
2516
|
+
const KeyC = 31;
|
|
2517
|
+
const KeyV = 50;
|
|
2518
|
+
const KeyX = 52;
|
|
2519
|
+
const F2 = 58;
|
|
2520
|
+
const Star = 131;
|
|
2521
|
+
|
|
2522
|
+
const CtrlCmd = 1 << 11 >>> 0;
|
|
2523
|
+
const Shift = 1 << 10 >>> 0;
|
|
2524
|
+
const Alt = 1 << 9 >>> 0;
|
|
2525
|
+
|
|
2526
2526
|
const mergeClassNames = (...classNames) => {
|
|
2527
2527
|
return classNames.filter(Boolean).join(' ');
|
|
2528
2528
|
};
|
|
@@ -3416,7 +3416,7 @@ const getKeyBindings = () => {
|
|
|
3416
3416
|
when: FocusExplorerEditBox
|
|
3417
3417
|
}, {
|
|
3418
3418
|
command: 'Explorer.removeDirent',
|
|
3419
|
-
key: Delete
|
|
3419
|
+
key: Delete,
|
|
3420
3420
|
when: FocusExplorer
|
|
3421
3421
|
}, {
|
|
3422
3422
|
command: 'Explorer.focusNone',
|
|
@@ -3852,10 +3852,18 @@ const getNewDirentsForNewDirent = async (items, focusedIndex, type, root) => {
|
|
|
3852
3852
|
const parentIndex = focusedIndex;
|
|
3853
3853
|
const itemsBeforeParent = items.slice(0, parentIndex);
|
|
3854
3854
|
const itemsAfterChildren = items.slice(parentIndex + updatedChildren.length);
|
|
3855
|
-
|
|
3855
|
+
let updatedParent = {
|
|
3856
3856
|
...items[parentIndex],
|
|
3857
3857
|
setSize: (items[parentIndex]?.setSize || 0) + 1
|
|
3858
3858
|
};
|
|
3859
|
+
|
|
3860
|
+
// If the parent is a closed Directory, expand it
|
|
3861
|
+
if (updatedParent.type === Directory) {
|
|
3862
|
+
updatedParent = {
|
|
3863
|
+
...updatedParent,
|
|
3864
|
+
type: DirectoryExpanded
|
|
3865
|
+
};
|
|
3866
|
+
}
|
|
3859
3867
|
return [...itemsBeforeParent, updatedParent, ...updatedChildren, ...itemsAfterChildren];
|
|
3860
3868
|
};
|
|
3861
3869
|
|