Skip to content

Commit

Permalink
Support Astro's class:list attribute by default (#890)
Browse files Browse the repository at this point in the history
* include `class:list` in `tailwindCSS.classAttributes` for Astro

* Update changelog

---------

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
  • Loading branch information
yuheiy and thecrypticace committed Mar 21, 2024
1 parent 81bfb90 commit e191eb5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/tailwindcss-language-server/src/config.ts
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
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
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
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

0 comments on commit e191eb5

Please sign in to comment.