Prevent errors in not semicolon languages (#461)
* fix: prevent errors in not semicolon languages
* fix: extends fix for sugarss and stylus
* Formatting
* Fix document access
Co-authored-by: Brad Cornes <bradlc41@gmail.com>
Bump hosted-git-info in /packages/tailwindcss-language-service (#493)
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)
---
updated-dependencies:
- dependency-name: hosted-git-info
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Add support for gohtmltmpl files for Hugo (#473)
Bump browserslist in /packages/tailwindcss-language-service (#492)
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.14.6 to 4.19.1.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.14.6...4.19.1)
---
updated-dependencies:
- dependency-name: browserslist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump path-parse in /packages/tailwindcss-language-service (#489)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)
---
updated-dependencies:
- dependency-name: path-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump glob-parent in /packages/tailwindcss-language-service (#490)
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)
---
updated-dependencies:
- dependency-name: glob-parent
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump tmpl from 1.0.4 to 1.0.5 in /packages/tailwindcss-language-service (#488)
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)
---
updated-dependencies:
- dependency-name: tmpl
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump node-fetch from 2.6.1 to 2.6.7 (#482)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)
---
updated-dependencies:
- dependency-name: node-fetch
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump trim-off-newlines from 1.0.1 to 1.0.3 (#481)
Bumps [trim-off-newlines](https://github.com/stevemao/trim-off-newlines) from 1.0.1 to 1.0.3.
- [Release notes](https://github.com/stevemao/trim-off-newlines/releases)
- [Commits](https://github.com/stevemao/trim-off-newlines/compare/v1.0.1...v1.0.3)
---
updated-dependencies:
- dependency-name: trim-off-newlines
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump shelljs from 0.8.4 to 0.8.5 (#483)
Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5.
- [Release notes](https://github.com/shelljs/shelljs/releases)
- [Changelog](https://github.com/shelljs/shelljs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/shelljs/shelljs/compare/v0.8.4...v0.8.5)
---
updated-dependencies:
- dependency-name: shelljs
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump lodash in /packages/tailwindcss-language-service (#487)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)
---
updated-dependencies:
- dependency-name: lodash
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump nanoid from 3.1.30 to 3.2.0 (#485)
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.2.0)
---
updated-dependencies:
- dependency-name: nanoid
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Filter out empty `files.exclude` items
Protect against undefined separator (#427)
Fix for projects with brackets in their path (#429)
Bump `@tailwindcss/language-server`
Fix for missing `files` config
Bump `@tailwindcss/language-server`
Add default excluded files (for non-vscode clients)
Synchronise `files` configuration section
Fix `files.exclude` merging (#464)
Don't read configuration from `initializationOptions`
Add `files.exclude` setting
Add bundled version of `tailwindcss` and first-party plugins
Exclude `*` from class completions
Disable variant order linting and sorting for tailwindcss v3
Bump `@parcel/watcher`
Adds M1 builds for language server
Ignore `content: var(--tw-content)` when determining color
Update syntax definitions
Update variant API for compatibility with `v3-alpha.2`
Ensure jit state is reset
Fix mode identification when using nested presets (#431)
Catch errors when resolving config and creating context
reinstate `console.log` override
increase classlist search range (#414)
update color extraction to allow parentheses (#423)
add `classAttributes` setting
Fix resolution of WSL files on Windows (#411)
add github issue template
allow whitespace around class attribute `=` (#426)
add `accent-color` to list of color-related CSS properties
Clarify supported config file names in readme (#278)
Add support for v3-alpha (#424)
* wip
* Update v3 support, color handling
* Update diagnostics and completions
* bump language service
* update context api usage
* bump language service
tweak style block regexes
Merge branch 'master' into bugfix-style
update `<style>` patterns
inline `getModuleDependencies`
[server] Fix crash on M1 macs
Fix error when rule doesn't have a parent
Merge branch 'master' into css-helpers
update diagnostic message
Merge branch 'master' of github.com:tailwindlabs/tailwindcss-intellisense
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.
Merge pull request #365 from choplin/patch-1
Avoid `invalidConfigPath` for function values
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
use character-base ranges when looking for classes
update language server package
add license and third-party notices for language server package
update resolver options to support `exports` fields (#412)
add `phoenix-heex` language (#407)
avoid false positives when parsing colors (#415)
disable extension in virtual workspaces (#398)
fix file event handler when file is in a dot folder (#389)
find config files hiding in hidden folders (#389)
bump language server version