Fix #106116, collectWorkspaceStats() can hang

This commit is contained in:
Rachel Macfarlane 2020-09-25 15:20:52 -07:00
parent 4b4f335f26
commit 68089c3062

View file

@ -86,7 +86,7 @@ export async function collectWorkspaceStats(folder: string, filter: string[]): P
return;
}
if (token.count > MAX_FILES) {
if (token.count >= MAX_FILES) {
token.count += files.length;
token.maxReached = true;
resolve();