Skip to content

goToDefinition doesn't work properly #247

Open
@BohdanZinkevych

Description

@BohdanZinkevych

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:

  1. Open any .tsx file that uses a CSS module.
  2. Click on a classname imported from the CSS module.
  3. Observe that it navigates to the incorrect place in the opened file.

image
image

Expected behavior:
The CSS module file should open at the correct classname's place.

OS: Windows 11
IDE: VSCode

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions