@lvce-editor/explorer-view 7.32.0 → 7.32.1
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.
|
@@ -1780,9 +1780,6 @@ const readDirWithFileTypes = async uri => {
|
|
|
1780
1780
|
const readFile = async uri => {
|
|
1781
1781
|
return invoke$1('FileSystem.readFile', uri);
|
|
1782
1782
|
};
|
|
1783
|
-
const getPathSeparator$1 = async root => {
|
|
1784
|
-
return invoke$1('FileSystem.getPathSeparator', root);
|
|
1785
|
-
};
|
|
1786
1783
|
const isReadonly = async root => {
|
|
1787
1784
|
return invoke$1('FileSystem.isReadonly', root);
|
|
1788
1785
|
};
|
|
@@ -5859,10 +5856,6 @@ const getFriendlyErrorMessage = (errorMessage, errorCode) => {
|
|
|
5859
5856
|
}
|
|
5860
5857
|
};
|
|
5861
5858
|
|
|
5862
|
-
const getPathSeparator = async root => {
|
|
5863
|
-
return getPathSeparator$1(root);
|
|
5864
|
-
};
|
|
5865
|
-
|
|
5866
5859
|
const getRestoredDeltaY = savedState => {
|
|
5867
5860
|
if (savedState && typeof savedState.deltaY === 'number') {
|
|
5868
5861
|
return savedState.deltaY;
|
|
@@ -6054,10 +6047,8 @@ const loadContent = async (state, savedState) => {
|
|
|
6054
6047
|
const root = getSavedRoot(savedState, workspacePath);
|
|
6055
6048
|
const expandedPaths = getExpandedPaths(savedState, root, currentRoot, currentExpandedPaths, preserveExpandState);
|
|
6056
6049
|
try {
|
|
6057
|
-
|
|
6058
|
-
const
|
|
6059
|
-
// TODO only load path separator once
|
|
6060
|
-
root === '' ? false : isReadonly(root)]);
|
|
6050
|
+
const pathSeparator = Slash;
|
|
6051
|
+
const isReadonly$1 = root === '' ? false : await isReadonly(root);
|
|
6061
6052
|
const restoredDirents = await restoreExpandedState(expandedPaths, root, pathSeparator, excluded);
|
|
6062
6053
|
const rawDeltaY = getRestoredDeltaY(savedState);
|
|
6063
6054
|
const maxDeltaY = Math.max(restoredDirents.length * itemHeight - height, 0);
|
|
@@ -6291,8 +6282,7 @@ const getFileOperationsElectron = async (root, paths, fileHandles, pathSeparator
|
|
|
6291
6282
|
|
|
6292
6283
|
// TODO copy files in parallel
|
|
6293
6284
|
const copyFilesElectron = async (root, fileHandles, files, paths) => {
|
|
6294
|
-
const
|
|
6295
|
-
const operations = await getFileOperationsElectron(root, paths, fileHandles, pathSeparator);
|
|
6285
|
+
const operations = await getFileOperationsElectron(root, paths, fileHandles, Slash);
|
|
6296
6286
|
await applyFileOperations(operations);
|
|
6297
6287
|
};
|
|
6298
6288
|
|