Skip to content

Commit f83e47a

Browse files
authored
Merge pull request microsoft#226870 from microsoft/digitarald/radical-octopus
Expand workspace stats
2 parents 78f4b54 + 4ecd23c commit f83e47a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/vs/platform/diagnostics/node/diagnosticsService.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ interface ConfigFilePatterns {
2828
relativePathPattern?: RegExp;
2929
}
3030

31-
const worksapceStatsCache = new Map<string, Promise<WorkspaceStats>>();
31+
const workspaceStatsCache = new Map<string, Promise<WorkspaceStats>>();
3232
export async function collectWorkspaceStats(folder: string, filter: string[]): Promise<WorkspaceStats> {
3333
const cacheKey = `${folder}::${filter.join(':')}`;
34-
const cached = worksapceStatsCache.get(cacheKey);
34+
const cached = workspaceStatsCache.get(cacheKey);
3535
if (cached) {
3636
return cached;
3737
}
@@ -55,7 +55,8 @@ export async function collectWorkspaceStats(folder: string, filter: string[]): P
5555
{ tag: 'cmake', filePattern: /^.+\.cmake$/i },
5656
{ tag: 'github-actions', filePattern: /^.+\.ya?ml$/i, relativePathPattern: /^\.github(?:\/|\\)workflows$/i },
5757
{ tag: 'devcontainer.json', filePattern: /^devcontainer\.json$/i },
58-
{ tag: 'dockerfile', filePattern: /^(dockerfile|docker\-compose\.ya?ml)$/i }
58+
{ tag: 'dockerfile', filePattern: /^(dockerfile|docker\-compose\.ya?ml)$/i },
59+
{ tag: 'cursorrules', filePattern: /^\.cursorrules$/i },
5960
];
6061

6162
const fileTypes = new Map<string, number>();
@@ -150,7 +151,7 @@ export async function collectWorkspaceStats(folder: string, filter: string[]): P
150151
});
151152
});
152153

153-
worksapceStatsCache.set(cacheKey, statsPromise);
154+
workspaceStatsCache.set(cacheKey, statsPromise);
154155
return statsPromise;
155156
}
156157

0 commit comments

Comments
 (0)