Skip to content

Can't Parse CSS Variables from Svelte File #117

@jelias

Description

@jelias

Describe the bug
I use a Theme.svelte file that includes all of the CSS variables inside of a style tag. This does not get parsed by CSSVar, and thus none of my styles are available for autocomplete.

To Reproduce
Steps to reproduce the behavior:

  1. In Settings, add Svelte file to CSSvar: Files
  2. Disable and Enable extension
  3. Notification pops up: Failed to parse CSS variables in files: xx/Theme.svelte

Expected behavior
Ideally, this would be able to parse the style tag of the Svelte file, which is pure css (or SCSS, if lang is specified).

Screenshots
If applicable, add screenshots to help explain your problem.

Details (please complete the following information):

  • OS: MacOS 13.6.4
  • VSCode version: v1.86.2
  • Extension version: v2.6.4

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions