diff --git a/src/vs/platform/diagnostics/node/diagnosticsService.ts b/src/vs/platform/diagnostics/node/diagnosticsService.ts index 3408c59c1d7..1f5326fd136 100644 --- a/src/vs/platform/diagnostics/node/diagnosticsService.ts +++ b/src/vs/platform/diagnostics/node/diagnosticsService.ts @@ -77,6 +77,7 @@ export function collectWorkspaceStats(folder: string, filter: string[]): Promise } if (token.count > MAX_FILES) { + token.count += files.length; token.maxReached = true; return done(results); }