microsoft / vscode-css-languageservice

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

Missing support for `[]`-enclosed lists in SCSS styles #399

Open Atulin opened 1 month ago

Atulin commented 1 month ago

Steps to reproduce

<style lang="scss">
@use "sass:list";

.selector {
    $colors: "#69ffae", "#1ae5b5", "#5193da", "#9f6cda", "#dac669", "#d48943";
    color: list.nth($colors, 2);

    $colors: ["#69ffae", "#1ae5b5", "#5193da", "#9f6cda", "#dac669", "#d48943"];
    color: list.nth(["#69ffae", "#1ae5b5", "#5193da", "#9f6cda", "#dac669", "#d48943"], 2);
}
</style>

What is expected?

No errors

What is actually happening?

Errors image image

Any additional comments?

Webstorm issue: https://youtrack.jetbrains.com/issue/WEB-68090/SCSS-vue-language-server-2.0.22-missing-support-for-enclosed-lists

Vue Language Tools issue: https://github.com/vuejs/language-tools/issues/4584