@lvce-editor/explorer-view 7.10.0 → 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.
|
@@ -2604,7 +2604,6 @@ const acceptRename = async state => {
|
|
|
2604
2604
|
editingErrorMessage: renameErrorMessage
|
|
2605
2605
|
};
|
|
2606
2606
|
}
|
|
2607
|
-
await invoke$2('Main.handleUriChange', oldUri, newUri);
|
|
2608
2607
|
const children = await getChildDirents(pathSeparator, dirname, renamedDirent.depth - 1, excluded, root);
|
|
2609
2608
|
const tree = createTree(items, root);
|
|
2610
2609
|
const update = computeExplorerRenamedDirentUpdate(root, dirname, oldUri, children, tree, newUri);
|
|
@@ -5270,10 +5269,15 @@ const handleCut = async state => {
|
|
|
5270
5269
|
|
|
5271
5270
|
const handleDoubleClick = async (state, eventX, eventY) => {
|
|
5272
5271
|
const index = getIndexFromPosition(state, eventX, eventY);
|
|
5273
|
-
if (index
|
|
5274
|
-
return state;
|
|
5272
|
+
if (index === -1) {
|
|
5273
|
+
return newFile(state);
|
|
5275
5274
|
}
|
|
5276
|
-
|
|
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;
|
|
5277
5281
|
};
|
|
5278
5282
|
|
|
5279
5283
|
const handleDragEnd = state => {
|