-
Notifications
You must be signed in to change notification settings - Fork 33.7k
#163967 css aliases #197033
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
base: main
Are you sure you want to change the base?
#163967 css aliases #197033
Conversation
feat(css aliases): added scss.alias.paths Provides definitions and constraints to the settings
@microsoft-github-policy-service agree |
fix(package.nls.json): amended key and description
Since microsoft/vscode-css-languageservice#368 is merged, are there any blockers for merging this? |
What are valid paths? Relative, absolute? Resolved against what? |
Any updates on this? I don't see a reason why this stayed in limbo for more than a year. |
See my question on #197033 (comment) |
I did see your question, it makes you look completely clueless. If I must explain though, the point of this pr is to allow users to configure intellisense so that it's aware of any CSS/SCSS import aliases they may have configured in their bundling tools (webpack, vite, etc.). It's roughly the same as the Seriously, just read the text of this very pr and you'll get the answers to your questions. It's explained in words I would struggle to put any simpler, how did you not understand? "What are valid paths?" what the user decides, what the hell kind of question is that? Get someone else to take this task over if you hold so much disdain for it. |
Paths in
|
The project root in this case would be wherever the package.json file is, which is also where the setting is stored in the first place, which again, you could have deduced by reading the text of the pull request. Edit: took a closer look, realized there's also a setting for All the possible cases have exactly one obvious resolution to them, so I ask again: what exactly is ambiguous about literally any of this? |
Thanks for the explanation.
So, next steps, please clarify the user setting and fix the implementation. |
See, that's far more actionable than your "huh? wuh???" response from a year ago. Frustrations aside, is the author of this pr even listening? He hasn't piped up during this entire interaction. Maybe someone else should take this over huh. |
Issue #163967: [css] Custom aliases in CSS file resolution
In conjunction with Pull Request #368
Functionality
Main functionality is in the aforementioned pull request. The changes in this pull request allow the user to specify the alias settings that are to be consumed by the css-language-service to allow for ctrl-click file link navigation for aliased imports within CSS and SCSS files.
Changes
Package.json:
Added an 'alias.path' object, for both css and scss, that allows a user to specify an alias and an associated path. Object has pattern constraints to ensure correct syntax and mirroring the behaviour of alias settings in a tsconfig.json file (under 'compiler.paths').
Package.nls.json:
Added the associated tool tip descriptions to guide the user on using the settings.