tailwindlabs / tailwindcss-intellisense

Intelligent Tailwind CSS tooling for Visual Studio Code
2.75k stars 183 forks source link

Color decorators don't show up in a split editor #885

Closed mthierman closed 6 months ago

mthierman commented 6 months ago

What version of VS Code are you using?

1.85.1

What version of Tailwind CSS IntelliSense are you using?

v0.10.3

What version of Tailwind CSS are you using?

3.3.6

What package manager are you using?

pnpm

What operating system are you using?

Windows 11

Tailwind config

import type { Config } from "tailwindcss";

export default {
    plugins: [require("@tailwindcss/typography")],
    content: ["./src/**/*.{html,js,ts}"],
} satisfies Config;

VS Code settings

"editor.colorDecorators": true
"tailwindCSS.colorDecorators": true
"editor.defaultColorDecorators": true

Reproduction URL

N/A

Describe your issue

Color decorators for Tailwind don't show up when you split an editor. This does work with regular CSS.

Screenshot 2023-12-17 125025

thecrypticace commented 6 months ago

Confirmed. Weirdly enough the editor that the decorators appear in depends on the order in which you opened the files.

For example, if you opened a CSS file in the 2nd pane but not the first they show up in the 2nd split editor but not the first. If you swap the order then they don't appear in the second editor.

Will look into it!

thecrypticace commented 6 months ago

I've got a fix for this. Will get a release out sometime today or tomorrow!