Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tailwind LS gives invalid suggestions when started after first - #12541

Open
aster-void opened this issue Jan 15, 2025 · 2 comments
Open

tailwind LS gives invalid suggestions when started after first - #12541

aster-void opened this issue Jan 15, 2025 · 2 comments
Labels
C-bug Category: This is a bug

Comments

@aster-void
Copy link
Contributor

Summary

tailwind LS gives invalid suggestions when the completion starts after first -

Reproduction Steps

https://asciinema.org/a/8CCtaplo2JFn3z2ZfoJeZgluL

I have created a repro repo s.t. you don't have to.
https://github.com/aster-void/helix-repro/

I tried this:

  1. install tailwindcss-language-server
  2. initialize a tailwind project (i.e. create tailwind.config.js with some text)
  3. write something like this, then wait for the LS to start completion:
<div class="text-[cursor]"></div>

3.1. if the completeion starts too early, write text-red then delete the red part
4. continue writing red

I expected this to happen:

it should suggest text-red-[number]

Instead, this happened:

it suggested divide-red-[number], which doesn't match what I have

Helix log

~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines

2025-01-15T13:03:49.996 helix_term::application [WARN] Ignoring a client/registerCapability request because dynamic capability registration is not enabled. Please report this upstream to the language server

Platform

Linux / NixOS

Terminal Emulator

kitty 0.38.1 created by Kovid Goyal

Installation Method

flake

Helix Version

helix 25.01 (ca19496)

@aster-void aster-void added the C-bug Category: This is a bug label Jan 15, 2025
@David-Else
Copy link
Contributor

David-Else commented Jan 15, 2025

It could be related to #12501. @nik-rev What do you think?

@nik-rev
Copy link
Contributor

nik-rev commented Jan 15, 2025

It could be related to #12501. @nik-rev What do you think?

what #12501 does is check if the documentation for each Color item ends with a valid hex code, and if so, use it to display a colored box. It doesn't affect the completion algorithm at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants