Skip to content

[v4] Intellisense not suggesting classes for prefix layer function #1128

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

Closed
david-pw opened this issue Jan 21, 2025 · 2 comments · Fixed by #1129
Closed

[v4] Intellisense not suggesting classes for prefix layer function #1128

david-pw opened this issue Jan 21, 2025 · 2 comments · Fixed by #1129
Assignees
Labels
bug Something isn't working

Comments

@david-pw
Copy link

david-pw commented Jan 21, 2025

What version of VS Code are you using?

1.96.3

What version of Tailwind CSS IntelliSense are you using?

release-0.12.18 or prerelease-0.13.69

What version of Tailwind CSS are you using?

^4.0.0-beta.9

What package manager are you using?

npm

What operating system are you using?

windows 11

Tailwind config

@import "tailwindcss" source(none) prefix(pw);
@config "../tailwind.config.js";
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./src/**/*.{html,ts,tsx,js,jsx,css}",
    "../../../Core.Web/Views/**/*.cshtml",
    "../../../Core.Web/Areas/**/*.cshtml",
    "./index.html",
  ],
};

VS Code settings

{
  "typescript.tsdk": "node_modules\\typescript\\lib",
  "tailwindCSS.experimental.classRegex": [
    ["([\"'`][^\"'`]*.*?[\"'`])", "[\"'`]([^\"'`]*).*?[\"'`]"]
  ]
}

Reproduction URL

N/A

Describe your issue

When specifying either a css layer function prefix of pw or a standard prefix in the tailwind.config.js of prefix: "pw:" intellisense within my tsx files does not work. When I remove the prefix option from either configuration, intellisense turns back on with no issue.

Example @import "tailwindcss" source(none) prefix(pw):

Image

Example without @import "tailwindcss" source(none):

Image

Just wondering if support for this syntax has been rolled out yet? I see that you still have a draft PR up that might be related? #1117

Thanks!

@thecrypticace thecrypticace self-assigned this Jan 21, 2025
@thecrypticace thecrypticace added the bug Something isn't working label Jan 21, 2025
@thecrypticace
Copy link
Contributor

Ah this is a bug — whoops. I'll see if I can get it sorted today or tomorrow.

@thecrypticace
Copy link
Contributor

thecrypticace commented Jan 21, 2025

Fix released in v0.14.0 — thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants