There was an error while loading. Please reload this page.
1 parent 026628d commit a85c56dCopy full SHA for a85c56d
1 file changed
src/utils/Zip.ts
@@ -16,14 +16,14 @@ export default class Zip {
16
for (const uri of uriList) {
17
if (zipped.has(uri.fsPath)) continue;
18
19
- const name = workspace.asRelativePath(uri.fsPath, false);
+ const name = workspace.asRelativePath(uri, false);
20
if (!name) continue;
21
22
- let stats;
23
- try { stats = await workspace.fs.stat(uri); }
+ let fileStat;
+ try { fileStat = await workspace.fs.stat(uri); }
24
catch { continue; }
25
26
- if (stats.type !== FileType.File) continue;
+ if (fileStat.type !== FileType.File) continue;
27
28
zipped.add(uri.fsPath);
29
0 commit comments