zed icon indicating copy to clipboard operation
zed copied to clipboard

Incorrect order of suggestions in Tailwind LSP

Open esko opened this issue 1 year ago • 1 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

Order of suggestions in Zed's implementation of Tailwind LSP differs from VSCode and nvim LSP ones. This is especially distracting when using the common px- and py- padding classes, where Zed first suggests the rarely needed scroll-px- and scroll-py classes.

I'm not sure what the correct suggestions should be. In VsCode if you type px-4, it lists first the px- classes and scroll-px- after that. In nvim (nvim-cmp) it only lists the px- classes. Of other editors Nova works similarly to VSCode.

Environment

Zed: v0.149.0 (Zed Preview) OS: macOS 14.5.0 Memory: 36 GiB Architecture: aarch64

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

Screenshot 2024-08-23 at 22 02 57 Screenshot 2024-08-23 at 22 17 00 Screenshot 2024-08-23 at 22 10 05

If applicable, attach your Zed.log file to this issue.

No response

esko avatar Aug 23 '24 19:08 esko

I recently enabled tailwind and also noticed that the suggestions seemed messed up.

lougreenwood avatar Aug 25 '24 21:08 lougreenwood

It looks like this is fixed. I'm not able to reproduce it anymore.

Image

Let me know if this is still happening for you on the latest version of Zed, and I will reopen it.

smitbarmase avatar Mar 18 '25 10:03 smitbarmase