Skip to content

[Bug] Nested color values does not work for Multi-Root WS #68

@phoenisx

Description

@phoenisx

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:

  1. Create a Multi Root project, and define two folders (f1 and f2) in it.
  2. cssvar settings for both these folders would look something like the following:
// f1/.vscode/settings.json
{
  "cssvar.files": ["../node_modules/open-props/open-props.min.css"],
  "cssvar.ignore": []
}
// f2/.vscode/settings.json
{
  "cssvar.files": ["../node_modules/open-props/open-props.min.css", "theme*.css"],
  "cssvar.ignore": [],
}
  1. As you can see both f1 and f2 folders depend on variables provided by open-props.css and are defined in both folder's settings
  2. Intellisense for CSS variables in one of these folders (f2 for example) is not provided, even though open-props is declared in f2 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 working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions