@lvce-editor/explorer-view 1.8.0 → 1.9.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.
|
@@ -2325,7 +2325,7 @@ const handleClickDirectoryExpanding = (state, dirent, index, keepFocus) => {
|
|
|
2325
2325
|
};
|
|
2326
2326
|
|
|
2327
2327
|
const handleClickFile$1 = async (state, dirent, index, keepFocus = false) => {
|
|
2328
|
-
|
|
2328
|
+
await invoke(/* Main.openAbsolutePath */'Main.openUri', /* absolutePath */dirent.path, /* focus */!keepFocus);
|
|
2329
2329
|
return {
|
|
2330
2330
|
...state,
|
|
2331
2331
|
focusedIndex: index,
|
|
@@ -3280,9 +3280,15 @@ const removeDirent = async state => {
|
|
|
3280
3280
|
} else {
|
|
3281
3281
|
indexToFocus = Math.max(state.focusedIndex - 1, 0);
|
|
3282
3282
|
}
|
|
3283
|
+
const visible = newDirents.slice(state.minLineY, state.maxLineY);
|
|
3284
|
+
const icons = await getFileIcons(visible);
|
|
3285
|
+
console.log({
|
|
3286
|
+
icons
|
|
3287
|
+
});
|
|
3283
3288
|
return {
|
|
3284
3289
|
...state,
|
|
3285
3290
|
items: newDirents,
|
|
3291
|
+
icons,
|
|
3286
3292
|
focusedIndex: indexToFocus
|
|
3287
3293
|
};
|
|
3288
3294
|
};
|