You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[scss] "Follow link" on @use/@import statements with absolute paths not working with node_modules. #245579
bugIssue identified by VS Code Team member as probable bugcss-less-scssIssues and items concerning CSS,Less,SCSS stylinghelp wantedIssues identified as good community contribution opportunities
When Ctrl+Click (Follow link) is used on @use and/or @import statement paths, VSCode only ever attempts to resolve them as if they were relative. Eg. the example below will make VSCode attempt to open a non-existing file located at src/bootstrap.scss.variables.scss instead of looking for a bootstrap module in node_modules (itself located at the project root), which is what the scss compiler correctly does.
// src/app.scss@import'bootstrap/scss/variables';
Does this issue occur when all extensions are disabled?: Yes
VS Code Version: 1.98.2
OS Version: Windows 11
Steps to Reproduce:
Create/open any node project
Install any scss framework (for demo purposes, use bootstrap)
Create any scss file anywhere (probably your src/source folder though)
Write a use or import statement using said scss framework, as above
bugIssue identified by VS Code Team member as probable bugcss-less-scssIssues and items concerning CSS,Less,SCSS stylinghelp wantedIssues identified as good community contribution opportunities
Activity
miss-programgamer commentedon Apr 14, 2025
More information: it does work when in a WSL remote session, so this somehow seems to be platform-dependent.
IsaacTian05 commentedon Apr 26, 2025
Hello I have create a PR for this issue, PTAL anyone involved
microsoft/vscode-css-languageservice#440