Skip to content

Commit 2d0b39c

Browse files
committed
correction for workspace folder for usecase.
1 parent a80ae37 commit 2d0b39c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/core/src/codewhisperer/util/zipUtil.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,11 @@ export class ZipUtil {
412412

413413
const sourceFiles = await collectFiles(
414414
projectPaths,
415-
[...(vscode.workspace.workspaceFolders ?? [])].sort(
416-
(a, b) => b.uri.fsPath.length - a.uri.fsPath.length
417-
) as CurrentWsFolders,
415+
(useCase === FeatureUseCase.TEST_GENERATION
416+
? [...(vscode.workspace.workspaceFolders ?? [])].sort(
417+
(a, b) => b.uri.fsPath.length - a.uri.fsPath.length
418+
)
419+
: vscode.workspace.workspaceFolders) as CurrentWsFolders,
418420
{
419421
maxSizeBytes: this.getProjectScanPayloadSizeLimitInBytes(),
420422
},

0 commit comments

Comments
 (0)