Skip to content
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

Autocomplete not working with global path #271

Open
fuxichen opened this issue Oct 14, 2024 · 0 comments · May be fixed by #273
Open

Autocomplete not working with global path #271

fuxichen opened this issue Oct 14, 2024 · 0 comments · May be fixed by #273

Comments

@fuxichen
Copy link

fuxichen commented Oct 14, 2024

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

@fuxichen fuxichen linked a pull request Oct 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant