Skip to content

Commit 00cc54b

Browse files
authored
fix(amazonq): deduplicate files in context list (#1120)
* fix(amazonq): add validation for create a saved prompt UX * fix(amazonq): deduplicate files in context list
1 parent 4a7bfdc commit 00cc54b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/aws-lsp-codewhisperer/src/language-server/agenticChat/context/addtionalContextProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export class AdditionalContextProvider {
131131
}
132132
}
133133
const fileList: FileList = {
134-
filePaths: context.map(item => item.relativePath),
134+
filePaths: [...new Set(context.map(item => item.relativePath))],
135135
details: fileDetails,
136136
}
137137
return fileList

0 commit comments

Comments
 (0)