Skip to content

Hex color inside string is not detected #251582

Closed
@alexdima

Description

@alexdima

When having the following code:

const color = '#ff0000';

It is not detected as a color in the standalone color picker. However, if I insert a space before it, it begins being detected. This works:

const color = ' #ff0000';

I think that the color picker should also be shown when the hex color is in a string like in this example.

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugeditor-color-pickerEditor color picker widget issuesinsiders-releasedPatch has been released in VS Code Insiders

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions