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

#163967 css aliases #197033

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

SStranks
Copy link

@SStranks SStranks commented Oct 30, 2023

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.

feat(css aliases): added scss.alias.paths
Provides definitions and constraints to the settings
@SStranks
Copy link
Author

@microsoft-github-policy-service agree

fix(package.nls.json): amended key and description
@niksy
Copy link

niksy commented Mar 17, 2024

Since microsoft/vscode-css-languageservice#368 is merged, are there any blockers for merging this?

@aeschli
Copy link
Contributor

aeschli commented Mar 18, 2024

What are valid paths? Relative, absolute? Resolved against what?

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 this pull request may close these issues.

5 participants