vscode-css-modules icon indicating copy to clipboard operation
vscode-css-modules copied to clipboard

Incorrect commented import is used in completion

Open MMMartt opened this issue 2 years ago • 1 comments

If there is a commented import before the correct one, it will be recognized as the expected module: Screen Shot 2022-08-22 at 13 52 44 If commented one is after the correct one: Screen Shot 2022-08-22 at 13 53 50 Should be relative to genImportRegExp() in src/utils/path.ts

MMMartt avatar Aug 22 '22 06:08 MMMartt

This extension based on RegExp, so the code is clean and simple, but sometimes you will encount edge cases like this issue, because we don't parse JS/TS file to detect which is comment and which is code. Anyway, PR welcome.

iChenLei avatar Aug 22 '22 06:08 iChenLei