-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Describe the bug
Nested variable declarations do not get evaluated for color values, where one of the parent CSS source file is present in multiple folder settings.
To Reproduce
Steps to reproduce the behavior:
- Create a Multi Root project, and define two folders (f1 and f2) in it.
cssvar
settings for both these folders would look something like the following:
// f2/.vscode/settings.json
{
"cssvar.files": ["../node_modules/open-props/open-props.min.css", "theme*.css"],
"cssvar.ignore": [],
}
- As you can see both
f1
andf2
folders depend on variables provided byopen-props.css
and are defined in both folder's settings - Intellisense for CSS variables in one of these folders (
f2
for example) is not provided, even thoughopen-props
is declared inf2
folder's settings.
Expected behavior
Intellisense should work in both f1
and f2
folders, for open-props
CSS variables.
Additional context
This is happening because a CSS source file is evaluated only once, unless it is modified later. Since open-props
is served from node-modules, and is less likely to get updated, it isn't added to f2
intellisense providers.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working