vscode-css-modules
vscode-css-modules copied to clipboard
Incorrect commented import is used in completion
If there is a commented import before the correct one, it will be recognized as the expected module:
If commented one is after the correct one:
Should be relative to
genImportRegExp()
in src/utils/path.ts
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.