@@ -28,10 +28,10 @@ interface ConfigFilePatterns {
28
28
relativePathPattern ?: RegExp ;
29
29
}
30
30
31
- const worksapceStatsCache = new Map < string , Promise < WorkspaceStats > > ( ) ;
31
+ const workspaceStatsCache = new Map < string , Promise < WorkspaceStats > > ( ) ;
32
32
export async function collectWorkspaceStats ( folder : string , filter : string [ ] ) : Promise < WorkspaceStats > {
33
33
const cacheKey = `${ folder } ::${ filter . join ( ':' ) } ` ;
34
- const cached = worksapceStatsCache . get ( cacheKey ) ;
34
+ const cached = workspaceStatsCache . get ( cacheKey ) ;
35
35
if ( cached ) {
36
36
return cached ;
37
37
}
@@ -55,7 +55,8 @@ export async function collectWorkspaceStats(folder: string, filter: string[]): P
55
55
{ tag : 'cmake' , filePattern : / ^ .+ \. c m a k e $ / i } ,
56
56
{ tag : 'github-actions' , filePattern : / ^ .+ \. y a ? m l $ / i, relativePathPattern : / ^ \. g i t h u b (?: \/ | \\ ) w o r k f l o w s $ / i } ,
57
57
{ tag : 'devcontainer.json' , filePattern : / ^ d e v c o n t a i n e r \. j s o n $ / i } ,
58
- { tag : 'dockerfile' , filePattern : / ^ ( d o c k e r f i l e | d o c k e r \- c o m p o s e \. y a ? m l ) $ / i }
58
+ { tag : 'dockerfile' , filePattern : / ^ ( d o c k e r f i l e | d o c k e r \- c o m p o s e \. y a ? m l ) $ / i } ,
59
+ { tag : 'cursorrules' , filePattern : / ^ \. c u r s o r r u l e s $ / i } ,
59
60
] ;
60
61
61
62
const fileTypes = new Map < string , number > ( ) ;
@@ -150,7 +151,7 @@ export async function collectWorkspaceStats(folder: string, filter: string[]): P
150
151
} ) ;
151
152
} ) ;
152
153
153
- worksapceStatsCache . set ( cacheKey , statsPromise ) ;
154
+ workspaceStatsCache . set ( cacheKey , statsPromise ) ;
154
155
return statsPromise ;
155
156
}
156
157
0 commit comments