Skip to content

Autocomplete not working with global path #271

Open
@fuxichen

Description

@fuxichen

Describe the bug
use global path alias @ for sources (defines in tsconfig.json through "baseUrl": "." and "paths": { "@/": ["./src/"] }).

To Reproduce
Steps to reproduce the behavior:

  1. Go to sandbox sources
  2. Create test.module.less and global.less files.
  3. Use @/ to import global.less in test.module.less (there is no issue when using ./ to import).
  4. Import test.module.less in App.vue.
  5. See the variable definition as

image

Expected behavior

Using @/ to import and using ./ to reference in test.module.less should result in the same behavior.

Screenshots

image

image

TypeScript version: 5.2.2
Plugin version: 5.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions