Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Bug Fix",
"description": "Code Review: Fixed a bug where some issues are missing from the code issues view for workspaces with custom names"
}
4 changes: 3 additions & 1 deletion packages/core/src/codewhisperer/util/zipUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ export class ZipUtil {

const workspaceFolder = vscode.workspace.getWorkspaceFolder(uri)
if (workspaceFolder) {
const projectName = workspaceFolder.name
// Note: workspaceFolder.name is not the same as the file system folder name,
// use the fsPath value instead
const projectName = path.basename(workspaceFolder.uri.fsPath)
const relativePath = vscode.workspace.asRelativePath(uri)
const zipEntryPath = this.getZipEntryPath(projectName, relativePath)
zip.addFile(zipEntryPath, Buffer.from(content, 'utf-8'))
Expand Down
Loading