microsoft / vscode-css-languageservice

CSS, LESS & SCSS language service extracted from VSCode to be reused, e.g in the Monaco editor.
MIT License
312 stars 176 forks source link

[scss] Path resolver to include partial files support #373

Closed dyhagho closed 9 months ago

dyhagho commented 9 months ago

Context

When importing partials (e.g "mixins.scss"), it's unnecessary to explicitly include the underscore (`). Sass inherently understands and imports files with or without the underscore. Therefore,@import "mixins.scss"` is a valid way to import the partial.

Why has this change been made?

Navigating to a partial file using Command + Click or Control + Click without specifying the underscore was causing the language server to be unable to find the path.

Changes

Before

before

After

after
dyhagho commented 9 months ago

@microsoft-github-policy-service agree