Skip to content

Commit 5156d26

Browse files
committed
chore: add suggestions, hovers, codeActions (true/false)
**REF**: - <tailwindlabs/tailwindcss-intellisense#535>
1 parent 29237fc commit 5156d26

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ npx tailwindcss init
4747
- `tailwindCSS.includeLanguages`: Enable features in languages that are not supported by default. Add a mapping here between the new language and an already supported language. E.g.: `{"plaintext": "html"}`, default: `{ "eelixir": "html", "elixir": "html", "eruby": "html", "htmldjango": "html", "html.twig": "html" }`
4848
- `tailwindCSS.files.exclude`: Configure glob patterns to exclude from all IntelliSense features. Inherits all glob patterns from the `#files.exclude#` setting, default: ["**/.git/**", "**/node_modules/**", "**/.hg/**"]
4949
- `tailwindCSS.classAttributes`: The HTML attributes for which to provide class completions, hover previews, linting etc, default: `["class", "className", "ngClass"]`
50+
- `tailwindCSS.suggestions`: Enable autocomplete suggestions, default: `true`
51+
- `tailwindCSS.hovers`: Enable hovers, default: `true`
52+
- `tailwindCSS.codeActions`: Enable code actions, default: `true`
5053
- `tailwindCSS.validate`: Enable linting. Rules can be configured individually using the `tailwindcss.lint.*` settings, default: `true`
5154
- `tailwindCSS.lint.cssConflict`: Class names on the same HTML element which apply the same CSS property or properties, valid option ["ignore", "warning", "error"], default: `warning`
5255
- `tailwindCSS.lint.invalidApply`: Unsupported use of the [`@apply` directive](https://tailwindcss.com/docs/functions-and-directives/#apply), valid option ["ignore", "warning", "error"], default: `error`

package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,24 @@
125125
],
126126
"markdownDescription": "The HTML attributes for which to provide class completions, hover previews, linting etc."
127127
},
128+
"tailwindCSS.suggestions": {
129+
"type": "boolean",
130+
"default": true,
131+
"markdownDescription": "Enable autocomplete suggestions.",
132+
"scope": "language-overridable"
133+
},
134+
"tailwindCSS.hovers": {
135+
"type": "boolean",
136+
"default": true,
137+
"markdownDescription": "Enable hovers.",
138+
"scope": "language-overridable"
139+
},
140+
"tailwindCSS.codeActions": {
141+
"type": "boolean",
142+
"default": true,
143+
"markdownDescription": "Enable code actions.",
144+
"scope": "language-overridable"
145+
},
128146
"tailwindCSS.colorDecorators": {
129147
"type": "boolean",
130148
"default": true,

0 commit comments

Comments
 (0)