aws/aws-toolkit-vscode

Call to extractClasses seems to use path as file content incorrectly.

Closed this issue · 1 comments

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))

hi @wmatosjr thanks for reporting, yea it's a bug as you mentioned. Fix pr #5873