Avoid `invalidConfigPath` for function values
Pass `validateConfigPath` if a type of value equals to `function`. The purpose of this commit is to avoid unwanted warnings when we define theme values as functions in tailwind.config.js, which, for example, are required to define theme colors with opacity enabled. https://github.com/tailwindlabs/tailwindcss/discussions/2206#discussioncomment-60081
remove `@defaults` when stringifying CSS
fix semi-colon insertion for indented rules
update `@tailwind` completions and diagnostics
bump tailwindcss-language-service
ignore empty `content` when determining rule color
ignore watcher binary load errors
resolve parcel watcher prebuilds from actual package
Merge branch 'master' into watcher
use lsp file events when available
tweak opacity modifier completions
reinstate #341
Co-Authored-By: Rafał Chłodnicki <rchl2k@gmail.com>
add `inspectPort` to readme
add `inspectPort` setting
fix `@types/vscode` version
add lerna and separate language server package
Merge pull request #341 from rchl/patch-1
fix crash on not passing "userLanguages" option
fix JIT initialisation when mode is set in a preset (fixes #333)
fix module resolution when path has a `#` (fixes #331)
fix completions and hovers inside `<style>` (fixes #334)
show pixel equivalents in jit mode (fixes #332)
[JIT] add opacity modifier completions
fix @variants completions/diagnostics in JIT mode (fixes #324)
tweak dynamic registration disposal
update `setupContext` arguments
bump tailwindcss-language-service
bump minimum vscode version
1.52.0 is required for the language client/server
fix @apply in plugins in jit mode
avoid re-loading modules when not necessary
fix error when using a "withOptions" plugin
bump tailwindcss-language-service
add prepublishOnly script
add recommendedVariantOrder setting to readme
add support back in for config files named tailwind.js
resolve jit modules together
always disregard user-defined mode
load jit modules with try/catch instead of by version number
reinstate console.log overrides
fix re-init short-circuit
now it takes config dependencies into account
bust user plugin cache?
fixes classes not updating when plugin is changed
add recommendedVariantOrder lint setting
add note about color decorator settings
only create output channel when needed
fix error for tailwindcss < 1.7.0
never reveal output channel
clear color decorators when restarting language client
fix user-defined language support
update colorDecorators setting
short-circuit re-initialisation
remove unnecessary async keyword
boot language clients lazily
add jit support, refactor for general reliability
restore user-defined mode config after compilation
Merge pull request #296 from dorgelesn/jit
Force `aot` mode
override console.log/error and catch unhandled rejections
Merge pull request #262 from neupauer/patch-1
Make output chanel name more human-friendly
update changelog and readme
tweak pixel equivalent comment spacing (#200)
replace `experimental.showPixelValues` setting with `showPixelEquivalents` and enable by default (#200)
add missing variants (#256)
fix error when using @apply in plugins (#255)
bump tailwindcss-language-service version
fix fast-glob concurrency
Merge branch 'alexbjorlig-improve-troubleshoot-section'
Merge branch 'master' of github.com:tailwindlabs/tailwindcss-intellisense
ignore file watcher permission errors (#238)
update class attribute regex (#233)
bump language service version
fix pnp config module resolution
add emmet noise check (#146)
replace publish npm script
bump language service version
Merge branches 'master' and 'master' of github.com:tailwindlabs/tailwindcss-intellisense
don't search for pnp file above root dir
add support for config files with .cjs extension (#198)
add hover, color decorator, linting support for classRegex setting (#129)
Merge branch 'DanSnow-pnp-support'
bump language service version
update browserslist usage (#159)
fixes "extends" in browserslist config
update custom regex support (#129)
fixes "ors" in regexes
bump language service version
add experimental showPixelValues setting
add some basic initialisation logs
classRegex: increase search range, make search global (#129)
bump language service version
add support for [ngClass] attribute (#187)
bump language service version
add experimental classRegex setting (#129)
respect editor tab size in CSS previews
export completionsFromClassList
update color parser to avoid false positives (#180)
update class attribute regex
fix readme image references
improve support for tailwindcss v2
update for at-apply changes in v2
remove lerna and update lsp deps
separate out tailwindcss-language-service package
Suppress glob errors (#174)
On tailwind error prevent crash and show message (#156)
Fix color parsing when alpha is 0 (#177)
Merge branch 'color-decorators'
Skip @apply validation if applyComplexClasses flag is enabled
update class attribute lexers to fix matching of "computed" attributes
remove class list length limit (#136)
use realpath for config require hook
fixes case where config is a symlink
rejig config finder (#130)
compare scope when determining css conflicts (#134)
don't send diagnostics if intellisense is disabled (#133)
update setting description
Merge branch 'diagnostics'
ignore purge option (#131)
fix class list offsets (fixes hover ranges)
update module resolution (#128)
update settings descriptions and types
fix hover provider when using computed attribute in vue template
update class attribute regex (#125)
make pseudo class name meta always an array
update setting descriptions
add requirements to readme (thanks @ledenis)
emphasize default setting
update changelog and readme
provide corePlugins helper when running plugins
add class list finder helper and fix ranges
Merge branch 'next' of github.com:bradlc/vscode-tailwindcss into next
update hover provider to use lexer for html class attribute hovers
inject syntax definition to text.html
use lexer for class attribute completions
filter @apply completions
fix removeMeta when meta prop is an object
add notification handlers
fix numbers being interpreted as colors
only run browserslist once
add `target` plugin helper
add includeLanguages setting and remove default language client
tweak file watching (#112)
update color plucking logic (#113)
support css properties with multiple values
Merge branch 'next' of github.com:bradlc/vscode-tailwindcss into next
show completion item color swatches for variable-alpha colors
simplify built-in plugin finder
resolve workspace dependencies relative to config file
add `HTML (EEx)` language
build and package updates
fix config helper hover range
update extension package.json and add icon
fix zero values in CSS helper completion items
fix @tailwind completion item resolution
vary @tailwind completions based on version
add @tailwind completions
fix completion item order
add @screen completion item detail
update context completion items
update extension activationEvents
prevent crash on config error
fix hover provider error on unknown class name
use decache when resolving config
add @apply hover provider
add emmet-style completions
refactor class name extraction and stringify
add initial @variants completions
add screen directive completions
add directive completions
add initial css helper hover
inject syntax into vue and svelte
add initial hover provider
Merge branch 'master' of github.com:bradlc/vscode-tailwindcss
restore readme, changelog, and img
Merge branch 'master' of github.com:bradlc/vscode-tailwindcss
remove tree view stuff for now
update to work with lsp definition format
replace microbundle with ncc
update foundDefinition callback to match response format
add placeholder to clients map to prevent >1 instance per folder
add modules and options to tree view
add tree view go to definition
Add support for Phoenix (.html.eex) files (#18)
add support for leaf files (#16)
add icon and update gallery banner color
add anchor links to readme
Merge branch 'master' of github.com:bradlc/vscode-tailwindcss
fix for number values in config() completion items (#9)
avoid emmet matches when word starts with a HTML tag name
add img folder to vscodeignore
update readme and add changelog
add @screen completions (#7)
clear require cache before reading tailwind config
add marketplace link to readme
support emmet style syntax in html-based file types
look for tailwindcss in subdirs (#1)
fix config glob to search folders other than root (#1)
update readme image paths
add vscode gallery banner color
update package.json and readme
add missing document types
tweak class regex to include className
update tailwind-class-names dep
rename project vscode-tailwind -> vscode-tailwindcss
fix html class attr regex
remove commented out code
add tailwind-config.js to config file glob
prevent showing completions for unknown prefixes
add config helper completions
reload on config file change
Merge pull request #5 from bradlc/vue
Vue
improve emmet syntax handling (#3)
add config helper completions for .vue files
add .vue @apply support (#4)
fix issue with nested vue <template>
add support for slim files (#36)
Added njk to the HTML_TYPES array for njk file extension support. (#31)
Add support for AdonisJS Edge templating (#29)
Fix EEx support (for elixir/phoenix) (#54)
Merge pull request #111 from zolrath/next
Add additional Elixir eex languages
Add additional eex languages
Merge pull request #116 from danmichaelo/patch-2
Add SugarSS support
Merge pull request #101 from ledenis/patch-1
add to readme that tailwind.config.js is required
Move requirements section over features section
tailwindcss must be installed
add to readme that tailwind.config.js is required
fix #74
update gallery banner color
update extension metadata
update extension description
remove old img folder and update .vscodeignore
add troubleshooting section to readme
update extension description
increase dimensions of banner image
rename utilityConflicts lint rule
update extension description
invalid @apply quick fix: check that base class name can be @applied
reuse @apply validation in hover provider
refactor invalid config path diagnostics
detect indent from CSS text only
make invalidApply quick fix work with multiple selectors
don't provide quick fix for @apply class name which has multiple rules
make "invalid @apply" quick fix work in mixed-language documents
fix language boundary ranges
replace js-levenshtein with sift-string
refactor "suggestion" quick fixes
consolidate conflict diagnostics and update quick fixes
add initial quick fix for utility conflict diagnostic
refactor diagnostics and add types
wip quick fix for invalid @apply
update diagnostic messages
add quick fixes for invalid screens/variants/helper keys/@tailwind
update error message wording
update lint setting names
offer suggestions for unknown variants/screens/@tailwind
add types for js-levenshtein
Merge branch 'master' into diagnostics
update "invalid helper key" error conditions and messages
ensure diagnostics are updated when the user's tailwind config changes
rename unknownConfigKey to invalidHelperKey
update unknownConfigKey error messages
make diagnostics settings language-overridable
remove diagnostics settings enum descriptions
enable diagnostics in multi-language documents
add initial "unsupported tailwind directive" lint rule
add initial "unknown config key" lint rule
add initial "unknown variant" lint rule
add initial "unknown screen" diagnostics
add settings for utility conflict and unsupported apply lint rules
Merge branch 'master' into diagnostics
add initial class name conflict diagnostics
make pseudo class name meta always an array
minor refactor of @apply diagnostics
Merge branch 'master' into diagnostics
Merge branch 'next' into diagnostics
update @apply diagnostics
Merge branch 'next' into diagnostics
Update color decorator debounce
Update setting description
Fix color decorators not updating when config changes or errors
Add initial color decorators
Merge branch 'pnp-support' of https://github.com/DanSnow/tailwindcss-intellisense into DanSnow-pnp-support
fix: Add back pnpm support
Merge pull request #222 from dcalhoun/add-rescript-support
Add ReScript support
Merge pull request #236 from MoPaMo/patch-1
Typo: change `built-it` to `built-in` in Docs
change `built-it` to `built-in`
There's a typo in line 37
Merge branch 'improve-troubleshoot-section' of https://github.com/alexbjorlig/tailwindcss-intellisense into alexbjorlig-improve-troubleshoot-section
Added section to troubleshooting
In refrence to issue #172, this VS code setting:
```
"search.exclude": {
"**/*.js": true
},
```
prevented the Tailwind config from being found ☺️
Make output chanel name more human-friendly
According to the documentation, the channel name is: "Human-readable string which will be used to represent the channel in the UI". So it shouldn't break anything.
Signed-off-by: Peter Neupauer <peter@neupauer.sk>
fix crash on not passing "userLanguages" option
Since the server can be used by various clients and there is no
guarantee that the "userLanguages" are provided, handle that
case gracefully and don't crash.