-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
goToDefinition doesn't work properly #247
Comments
I have the same problem. I upgraded
we used v4 with ts4 before, without any problem |
Adding a minor info here, before in vscode hovering with cmd key underlined the class before, now it does not happen |
just in case, I use the latest version of typescript-plugin-css-modules and typescript: '4.9.5' |
Another info from the log:
Which is important cos |
Hi @BohdanZinkevych, |
Hi @dzsodzso63, I think you have a different issue. Can you please raise a new request with a small reproduction? That will help me investigate further. Note that this is an experimental feature, and even when working, may not always point to the right line. |
@mrmckeb still doesn't work for me with or without goToDefinition: true |
Hi @BohdanZinkevych, can you please supply a reproduction? This feature is experimental and won't work perfectly, but should get you close in many cases. |
@mrmckeb yes, it's true, it leads me to the correct file but not to the correct place(line) |
Hi @BohdanZinkevych , thanks for your idea, i really love the "goToDefinition" feature. I create a reproduction of this issue, go to definition always lead me to the last line. |
@mrmckeb looks like the very same issue to me |
Hi all, I'm away at the moment, but will try to take a look at this in the next week or so. This is an experimental feature, and I'm not sure we'll ever be able to make it work perfectly as TypeScript doesn't provide an API for this. But, we can try to make it better. |
In VSCode, 'Go to Definition' (Ctrl + click on a classname) doesn't work for me; it opens the GenericMarkup.module.less file, and that's it.
tscondig.json
"plugins": [ { "name": "typescript-plugin-css-modules", "options": { "classnameTransform": "camelCaseOnly", "goToDefinition": "enabled", } } ]
Steps to reproduce:
Expected behavior:
The CSS module file should open at the correct classname's place.
OS: Windows 11
IDE: VSCode
The text was updated successfully, but these errors were encountered: