-
Notifications
You must be signed in to change notification settings - Fork 219
Show more relevant intellisense suggestions for border utility #1383
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
Comments
Why is
Could you clarify this? I’m not following the reasoning behind why
I was surprised by your observation... the right small portion of the VSCode screenshot you included does seem to indicate that. I double-checked, and it turns out this is not the view I get by default in my environment. By default, only one declaration is shown. To view both declarations, I need to click the three dots to expand the view: This isn't obvious and feels inconsistent compared to how intellisense displays suggestions in a single floating window for length-based utilities like |
All editors do fuzzy matching on word boundaries, so for example if you type
It's just not suggested by core.
Yes and no. VSCode is showing as much as space will allow. If you resize the completion list it can show more of the details. All border width utilities include two properties and the
With some very limited exception all utilities that contain more than one property show them all in the completion details. (Color utilities override this to display a hex code as that's how VSCode detects color swatches for completions, we remove generated Having said that, I could (and should) probably special case these to strip that declaration from the details as it's not really serving any useful purpose for these specific utilities. |
Special case for those values: #1384 |
Uh oh!
There was an error while loading. Please reload this page.
What version of VS Code are you using?
v1.100.2
What version of Tailwind CSS IntelliSense are you using?
v0.14.19
What version of Tailwind CSS are you using?
v4.1.7
What package manager are you using?
npm
What operating system are you using?
Ubuntu
Describe your issue
When using the
border
utility, the same utility prefix is used for both border color and border width, for example:border-amber-50
(color)border-1
(width)Currently, when typing something like
border-1
, intellisense suggests color values likeborder-red-100
, which is likely not what the user intends. It would be more helpful if suggestions related toborder-width
appeared instead.Also, for values like
border-0
orborder-2
, the suggestions shown are related toborder-style
, which is not very relevant in this context. More accurate suggestions showingborder-width
would improve dx.The text was updated successfully, but these errors were encountered: