Skip to content

Bug Report: Tailwind Auto-Complete in Go Templ & VTSLS Warnings #23427

@nesokad

Description

@nesokad

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

  1. Tailwind auto-complete used to work in .templ (Go Templ) files but has recently stopped functioning.
  2. VTSLS is showing warnings despite there being no tsconfig.json or node_modules in the project.

Current settings:

"Templ": {
      "language_servers": ["templ", "tailwindcss-language-server"],
      "inlay_hints": {
        "enabled": true
      }
    }

...

 "tailwindcss-language-server": {
      "settings": {
        "includeLanguages": {
          "templ": "html",
          "Templ": "html"
        },
        "experimental": {
          "classRegex": ["\\bclass:\\s*['\"]([^'\"]*)['\"]"]
        }
      }
    }

...
tailwind.config.js:
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: ["./internal/**/*.{html,js,templ}"],
  theme: {
    extend: {},
  },
  plugins: [],
};

Zed Version and System Specs

Zed: v0.170.1 (Zed Preview)
OS: macOS 15.2.0
Memory: 16 GiB
Architecture: aarch64

If applicable, add screenshots or screencasts of the incorrect state / behavior

No response

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

Zed.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:languages/tailwind cssTailwind CSS styling framework supportbugDEPRECATED label: use issue type 'Bug' insteadstaleLabel used by `stale` action

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions