Skip to content

Commit 8efc232

Browse files
committed
Fixed syntax errors and updated the test generation ignore pattern list.
1 parent 2d0b39c commit 8efc232

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

packages/core/src/codewhisperer/models/constants.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,4 +913,11 @@ export const testGenExcludePatterns = [
913913
'**/*.dylib',
914914
'**/*.parquet',
915915
'**/*.xlsx',
916+
'**/*.tar.gz',
917+
'**/*.tar',
918+
'**/*.pack',
919+
'**/*.pkg',
920+
'**/*.pkl',
921+
'**/*.deb',
922+
'**/*.model',
916923
]

packages/core/src/shared/utilities/workspaceUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export function getWorkspaceRelativePath(
229229
if (!override.workspaceFolders) {
230230
return
231231
}
232-
let folders = override.workspaceFolders
232+
const folders = override.workspaceFolders
233233

234234
for (const folder of folders) {
235235
if (isInDirectory(folder.uri.fsPath, childPath)) {
@@ -301,7 +301,7 @@ export function getExcludePattern(useDefaults: boolean = true, useCase?: Feature
301301
allPatterns.push(...defaultExcludePatterns)
302302
}
303303

304-
if (useCase == FeatureUseCase.TEST_GENERATION) {
304+
if (useCase === FeatureUseCase.TEST_GENERATION) {
305305
allPatterns.push(...testGenExcludePatterns)
306306
}
307307

0 commit comments

Comments
 (0)