zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.12k stars 3.07k forks source link

Tailwind css format add wrong spaces #4466

Open miguelramos opened 1 year ago

miguelramos commented 1 year ago

Check for existing issues

Describe the bug / provide steps to reproduce it

With the support of tailwind when saving a css file some of the utilities classes add wrong space on it making breaking the compile of css.

Environment

Zed: v0.103.1 (stable) OS: macOS 13.4.1 Memory: 16 GiB Architecture: x86_64

If applicable, add mockups / screenshots to help explain present your vision of the feature

how should it be:

image

Wrong format:

image

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

No response

JosephTLyons commented 1 year ago

cc: @ForLoveOfCats, @SomeoneToIgnore

RFillion commented 1 month ago

It does it for me too. It only does it in .css files when using apply. You will see a space also when using ! syntax : sm:!bg-primary.

RFillion commented 1 week ago

cc: @ForLoveOfCats @SomeoneToIgnore Please :)