Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,16 @@ To install this extension locally:
},
"HTML": {
"language_servers": ["angular", "..."]
},
"Angular": {
"language_servers": ["angular", "tailwindcss-language-server", "..."]
}
}
}
```

## Tailwind CSS Support

This version includes a fix for Tailwind CSS autocomplete in Angular template files. The Angular language now correctly maps to HTML for language server communication, enabling Tailwind CSS IntelliSense to work in both `.component.html` files and inline templates.

To enable Tailwind CSS support, add the configuration above to your `settings.json`, ensuring the Angular language includes both the `angular` and `tailwindcss-language-server` language servers.
2 changes: 1 addition & 1 deletion extension.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ path_suffixes = ["html", "ng.html"]
[language_servers.angular]
name = "Angular Language Server"
languages = ["TypeScript", "HTML", "Angular"]
language_ids = { "Angular" = "angular", "HTML" = "html", "TypeScript" = "typescript" }
language_ids = { "Angular" = "html", "HTML" = "html", "TypeScript" = "typescript" }
command = { extension = true }

[grammars.angular]
Expand Down
1 change: 0 additions & 1 deletion languages/angular/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ block_comment = ["<!-- ", " -->"]
autoclose_before = ";:.,=}])>\"'"
prettier_parser_name = "angular"

scope_opt_in_language_servers = ["tailwindcss-language-server"]

# Define brackets for TypeScript, HTML, CSS, and SCSS with Angular specific extensions
brackets = [
Expand Down