@lvce-editor/explorer-view 7.10.1 → 7.11.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.
@@ -5269,10 +5269,15 @@ const handleCut = async state => {
5269
5269
 
5270
5270
  const handleDoubleClick = async (state, eventX, eventY) => {
5271
5271
  const index = getIndexFromPosition(state, eventX, eventY);
5272
- if (index !== -1) {
5273
- return state;
5272
+ if (index === -1) {
5273
+ return newFile(state);
5274
5274
  }
5275
- return newFile(state);
5275
+ const item = state.items[index];
5276
+ const type = normalizeDirentType(item.type);
5277
+ if (type === File || type === SymLinkFile) {
5278
+ await openUri(item.path, true);
5279
+ }
5280
+ return state;
5276
5281
  };
5277
5282
 
5278
5283
  const handleDragEnd = state => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/explorer-view",
3
- "version": "7.10.1",
3
+ "version": "7.11.0",
4
4
  "description": "Explorer Worker",
5
5
  "repository": {
6
6
  "type": "git",