Skip to content

Go to Definition for specifiers fails using import alias in VS Code #206

@mizdra

Description

@mizdra

css-modules-kit supports resolving the specifiers using import alias.

Image

However, Go to Definition fails for that specifier.

2025-03-01.18.32.25.mov

Additional Context

  • This issue only occurs in VS Code.
  • This issue occurs because CSS Language Server takes priority over tsserver in receiving LSP requests.
    • documentLink requests are processed by CSS Language Server instead of tsserver.
    • As a result, Go to Definition fails.
  • The same problem occurs not only in paths of tsconfig.json, but also in imports of package.json.

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions