[PR #8517] feat(lsp): Add TailwindCSS LSP server support #12774

Closed
opened 2026-02-16 18:17:40 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8517

State: closed
Merged: No


Summary

This PR adds support for TailwindCSS Language Server, enabling IDE-like features (autocomplete, hover info, diagnostics) for TailwindCSS projects.

Changes

  • Added TailwindCSS LSP server configuration in packages/opencode/src/lsp/server.ts
  • Auto-installs @tailwindcss/language-server when not found in the system
  • Supports .css, .html, .htm, .jsx, .tsx, .vue, .svelte files
  • Detects TailwindCSS projects by looking for tailwind.config.js/ts or postcss.config.js/ts
  • Updated LSP documentation in packages/web/src/content/docs/lsp.mdx to include TailwindCSS entry

Testing

The implementation follows the same pattern as other auto-installed language servers (Vue, Svelte, etc.) in the codebase.

Fixes #8518

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8517 **State:** closed **Merged:** No --- ## Summary This PR adds support for TailwindCSS Language Server, enabling IDE-like features (autocomplete, hover info, diagnostics) for TailwindCSS projects. ## Changes - Added `TailwindCSS` LSP server configuration in `packages/opencode/src/lsp/server.ts` - Auto-installs `@tailwindcss/language-server` when not found in the system - Supports `.css`, `.html`, `.htm`, `.jsx`, `.tsx`, `.vue`, `.svelte` files - Detects TailwindCSS projects by looking for `tailwind.config.js/ts` or `postcss.config.js/ts` - Updated LSP documentation in `packages/web/src/content/docs/lsp.mdx` to include TailwindCSS entry ## Testing The implementation follows the same pattern as other auto-installed language servers (Vue, Svelte, etc.) in the codebase. Fixes #8518
yindo added the pull-request label 2026-02-16 18:17:40 -05:00
yindo closed this issue 2026-02-16 18:17:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12774