mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 08:03:19 +00:00
Runs @tailwindcss/language-server next to the language's own servers for HTML, CSS, JS/JSX, TS/TSX, Vue, Svelte and Astro, only below a tailwind.config.* (v3) or a package.json listing tailwindcss in dependencies or devDependencies (v4), with one-click install like the ESLint and Angular servers. JSON root markers (package.json#…) now match a key with any non-null value, not only objects. Adds fixtures/tailwind-app and an ignored real-server test. Co-authored-by: wildcatDownstairs <26499420+wildcatDownstairs@users.noreply.github.com>
27 lines
1.0 KiB
TOML
27 lines
1.0 KiB
TOML
id = "css"
|
|
name = "CSS"
|
|
formatter = { tool = "prettier", parser = "css", range = false }
|
|
extensions = ["css", "pcss", "postcss"]
|
|
block-comment = ["/*", "*/"]
|
|
indent = { tab-size = 2, insert-spaces = true }
|
|
ui-mode = "CSS"
|
|
tree-sitter = "css"
|
|
|
|
[[language-servers]]
|
|
name = "vscode-css-language-server"
|
|
command = "vscode-css-language-server"
|
|
args = ["--stdio"]
|
|
initialization-options = { provideFormatter = true, css = {}, scss = {}, less = {} }
|
|
install-hint = "npm i -g vscode-langservers-extracted"
|
|
|
|
# Tailwind CSS: class completion, hover and diagnostics, only in a project that uses Tailwind
|
|
# (`tailwind.config.*` or `tailwindcss` in package.json). After the language's own servers,
|
|
# which answer hover first.
|
|
[[language-servers]]
|
|
name = "tailwindcss-language-server"
|
|
command = "tailwindcss-language-server"
|
|
args = ["--stdio"]
|
|
root-markers = ["tailwind.config.*", "package.json#dependencies.tailwindcss", "package.json#devDependencies.tailwindcss"]
|
|
require-root-marker = true
|
|
install-hint = "npm i -g @tailwindcss/language-server"
|