@lvce-editor/explorer-view 5.22.0 → 5.23.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.
@@ -149,6 +149,8 @@ const Copy$1 = 3;
149
149
  const Rename$2 = 4;
150
150
  const Remove = 5;
151
151
 
152
+ const Text = 12;
153
+
152
154
  const Button$3 = 'event.button';
153
155
  const ClientX = 'event.clientX';
154
156
  const ClientY = 'event.clientY';
@@ -164,6 +166,27 @@ const ShiftKey = 'event.shiftKey';
164
166
  const TargetName = 'event.target.name';
165
167
  const TargetValue = 'event.target.value';
166
168
 
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
+
167
190
  const FileSystemWorker$1 = 209;
168
191
  const IconThemeWorker = 7009;
169
192
  const RendererWorker = 1;
@@ -1366,7 +1389,6 @@ const showContextMenu2 = async (uid, menuId, x, y, args) => {
1366
1389
  number(menuId);
1367
1390
  number(x);
1368
1391
  number(y);
1369
- // @ts-ignore
1370
1392
  await invoke$2('ContextMenu.show2', uid, menuId, x, y, args);
1371
1393
  };
1372
1394
  const getFileHandles$1 = async fileIds => {
@@ -1375,16 +1397,13 @@ const getFileHandles$1 = async fileIds => {
1375
1397
  };
1376
1398
  const sendMessagePortToIconThemeWorker = async (port, rpcId) => {
1377
1399
  const command = 'IconTheme.handleMessagePort';
1378
- // @ts-ignore
1379
1400
  await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIconThemeWorker', port, command, rpcId);
1380
1401
  };
1381
1402
  const sendMessagePortToFileSystemWorker$1 = async (port, rpcId) => {
1382
1403
  const command = 'FileSystem.handleMessagePort';
1383
- // @ts-ignore
1384
1404
  await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSystemWorker', port, command, rpcId);
1385
1405
  };
1386
1406
  const confirm = async (message, options) => {
1387
- // @ts-ignore
1388
1407
  const result = await invoke$2('ConfirmPrompt.prompt', message, options);
1389
1408
  return result;
1390
1409
  };
@@ -1393,7 +1412,6 @@ const writeClipBoardText = async text => {
1393
1412
  };
1394
1413
  const sendMessagePortToSourceControlWorker = async port => {
1395
1414
  const command = 'SourceControl.handleMessagePort';
1396
- // @ts-ignore
1397
1415
  await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSourceControlWorker', port, command, 0);
1398
1416
  };
1399
1417
 
@@ -1880,7 +1898,7 @@ const Copy = 'Copy';
1880
1898
  const CopyPath = 'Copy Path';
1881
1899
  const CopyRelativePath = 'Copy Relative Path';
1882
1900
  const Cut = 'Cut';
1883
- const Delete$1 = 'Delete';
1901
+ const Delete = 'Delete';
1884
1902
  const FileNameCannotStartWithSlash = 'A file or folder name cannot start with a slash.';
1885
1903
  const FileOrFolderAlreadyExists = 'A file or folder **{PH1}** already exists at this location. Please choose a different name.';
1886
1904
  const FileOrFolderNameMustBeProvider = 'A file or folder name must be provided.';
@@ -1929,7 +1947,7 @@ const rename = () => {
1929
1947
  return i18nString(Rename);
1930
1948
  };
1931
1949
  const deleteItem = () => {
1932
- return i18nString(Delete$1);
1950
+ return i18nString(Delete);
1933
1951
  };
1934
1952
  const refresh$1 = () => {
1935
1953
  return i18nString(RefreshExplorer);
@@ -2500,29 +2518,6 @@ const Viewlet = 'Viewlet';
2500
2518
  const Welcome = 'Welcome';
2501
2519
  const WelcomeMessage = 'WelcomeMessage';
2502
2520
 
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
2521
  const mergeClassNames = (...classNames) => {
2527
2522
  return classNames.filter(Boolean).join(' ');
2528
2523
  };
@@ -2921,6 +2916,9 @@ const wrapListItemCommand = fn => {
2921
2916
  newState
2922
2917
  } = get(id);
2923
2918
  const updatedState = await fn(newState, ...args);
2919
+ if (newState === updatedState) {
2920
+ return;
2921
+ }
2924
2922
  const {
2925
2923
  cutItems,
2926
2924
  decorations,
@@ -3416,7 +3414,7 @@ const getKeyBindings = () => {
3416
3414
  when: FocusExplorerEditBox
3417
3415
  }, {
3418
3416
  command: 'Explorer.removeDirent',
3419
- key: Delete,
3417
+ key: Delete$1,
3420
3418
  when: FocusExplorer
3421
3419
  }, {
3422
3420
  command: 'Explorer.focusNone',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/explorer-view",
3
- "version": "5.22.0",
3
+ "version": "5.23.0",
4
4
  "description": "Explorer Worker",
5
5
  "repository": {
6
6
  "type": "git",