Skip to content

Commit d9d200d

Browse files
committed
fix(amazonq): use fsPath for project name
1 parent 3a39b10 commit d9d200d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "Code Review: Fixed a bug where some issues are missing from the code issues view for workspaces with custom names"
4+
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ export class ZipUtil {
114114

115115
const workspaceFolder = vscode.workspace.getWorkspaceFolder(uri)
116116
if (workspaceFolder) {
117-
const projectName = workspaceFolder.name
117+
// Note: workspaceFolder.name is not the same as the file system folder name,
118+
// use the fsPath value instead
119+
const projectName = path.basename(workspaceFolder.uri.fsPath)
118120
const relativePath = vscode.workspace.asRelativePath(uri)
119121
const zipEntryPath = this.getZipEntryPath(projectName, relativePath)
120122
zip.addFile(zipEntryPath, Buffer.from(content, 'utf-8'))

0 commit comments

Comments
 (0)