Skip to content

Support Astro's class:list attribute by default #890

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

Merged
merged 2 commits into from
Mar 21, 2024
Merged
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
2 changes: 1 addition & 1 deletion packages/tailwindcss-language-server/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function getDefaultSettings(): Settings {
editor: { tabSize: 2 },
tailwindCSS: {
emmetCompletions: false,
classAttributes: ['class', 'className', 'ngClass'],
classAttributes: ['class', 'className', 'ngClass', 'class:list'],
codeActions: true,
hovers: true,
suggestions: true,
Expand Down
1 change: 1 addition & 0 deletions packages/vscode-tailwindcss/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 0.11.x (Pre-Release)

- Fix crash when class regex matches an empty string (#897)
- Support Astro's `class:list` attribute by default (#890)

## 0.10.5

Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-tailwindcss/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Enable completions when using [Emmet](https://emmet.io/)-style syntax, for examp

### `tailwindCSS.classAttributes`

The HTML attributes for which to provide class completions, hover previews, linting etc. **Default: `class`, `className`, `ngClass`**
The HTML attributes for which to provide class completions, hover previews, linting etc. **Default: `class`, `className`, `ngClass`, `class:list`**

### `tailwindCSS.colorDecorators`

Expand Down
3 changes: 2 additions & 1 deletion packages/vscode-tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@
"default": [
"class",
"className",
"ngClass"
"ngClass",
"class:list"
],
"markdownDescription": "The HTML attributes for which to provide class completions, hover previews, linting etc."
},
Expand Down