Skip to content

Commit 520d075

Browse files
committed
Log as soon as an entry is called
1 parent 40515c5 commit 520d075

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/vs/base/node/zip.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,16 @@ function extractZip(zipfile: ZipFile, targetPath: string, options: IOptions, log
101101
if (isCanceled || zipfile.entryCount === extractedEntriesCount) {
102102
c(null);
103103
} else {
104-
e(new ExtractError('Incomplete', new Error(nls.localize('incompleteExtract', "Incomplete. Extracted {0} of {1} entries", extractedEntriesCount, zipfile.entryCount))));
104+
e(new ExtractError('Incomplete', new Error(nls.localize('incompleteExtract', "Incomplete. Found {0} of {1} entries", extractedEntriesCount, zipfile.entryCount))));
105105
}
106106
}, e));
107107
zipfile.on('entry', (entry: Entry) => {
108+
logService.debug(targetPath, 'Found', entry.fileName);
109+
108110
if (isCanceled) {
109111
return;
110112
}
111113

112-
logService.debug(targetPath, 'Extracting', entry.fileName);
113-
114114
if (!options.sourcePathRegex.test(entry.fileName)) {
115115
extractedEntriesCount++;
116116
return;
@@ -131,6 +131,7 @@ function extractZip(zipfile: ZipFile, targetPath: string, options: IOptions, log
131131
last = throttler.queue(() => stream.then(stream => extractEntry(stream, fileName, mode, targetPath, options).then(() => extractedEntriesCount++)));
132132
});
133133
}, () => {
134+
logService.debug(targetPath, 'Cancelled.');
134135
isCanceled = true;
135136
last.cancel();
136137
zipfile.close();

0 commit comments

Comments
 (0)