Skip to content

Not all valid color syntaxes are recognized by the color decorator #193512

@cssinate

Description

@cssinate

Does this issue occur when all extensions are disabled?: Yes/No
Yes

  • VS Code Version: 1.82.2
  • OS Version: Windows 11 Pro build 22621

Steps to Reproduce:

  1. In settings, set "editor.defaultColorDecorators" to true
  2. Add the following to a JavaScript file: const blues = ['hsl(192, 87%, 49%)', 'hsl(192 87% 49%)', 'hsl(192.5, 87.5%, 49.5%)'];
  3. Note that the color decorator only appears on the first element. The other two elements are also valid CSS color syntax, yet don't register as colors by the ColorDecorator.

Metadata

Metadata

Labels

editor-color-pickerEditor color picker widget issueshelp wantedIssues identified as good community contribution opportunitiespolishCleanup and polish issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions