withastro / language-tools

Language tools for Astro
MIT License
272 stars 54 forks source link

Feature request: Css variable in Layout component not present in autocomplete of child #941

Closed nojaf closed 3 months ago

nojaf commented 3 months ago

Describe the Bug

When I define CSS variables in a Layout or page

<style>
    :root {
        --yellow: #FF0;
        --red: #F00;
    }
</style>

I don't get autocomplete for these in my component files.

Steps to Reproduce

  1. npm init astro using template
  2. Create Layout with CSS variable
  3. Try and consume in child component
  4. No autocomplete

Link to Minimal Reproducible Example

https://github.com/nojaf/astro-variable-repro

Princesseuh commented 3 months ago

This is not a bug, the feature just isn't there.