-
Notifications
You must be signed in to change notification settings - Fork 738
Closed
Labels
amazon-qbugWe can reproduce the issue and confirmed it is a bug.We can reproduce the issue and confirmed it is a bug.codewhisperer
Description
aws-toolkit-vscode/packages/core/src/codewhisperer/util/supplementalContext/utgUtils.ts
Line 132 in 5e8ad31
| testElementList.push(...extractClasses(editor.document.fileName, languageConfig.classExtractionPattern)) |
Shouldn't this be looking at the content of the editor.document.fileName and not the path? Call to extractClasses attempts to extract classes from the path, resulting is this function always returning empty list. Line should be:
testElementList.push(...extractClasses(testFileContent, languageConfig.classExtractionPattern))Will-ShaoHua
Metadata
Metadata
Assignees
Labels
amazon-qbugWe can reproduce the issue and confirmed it is a bug.We can reproduce the issue and confirmed it is a bug.codewhisperer