From a96e22dace230b37418503e41a013fa323a8797c Mon Sep 17 00:00:00 2001 From: Rachel Macfarlane Date: Wed, 21 Aug 2019 17:45:51 -0700 Subject: [PATCH] More accurate file count for workspace stats --- src/vs/platform/diagnostics/node/diagnosticsService.ts | 1 + 1 file changed, 1 insertion(+) 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); }