madskristensen / EditorColorPreview

Apache License 2.0
21 stars 5 forks source link

Color Preview Appears in TypeScript Code (Not Css Color) #8

Closed bdbvb closed 2 years ago

bdbvb commented 2 years ago

Describe the bug Color preview box shows up in typescript code when a variable comes after a colon and starts with a color name.

To Reproduce

const azureVar = "";
const foo = azureVar === "" ? "blue" : azureVar;

Preview box shows up just before the last instance of "azureVar" in the above example.

Expected behavior No preview box

Screenshots Another (real world) example: image