Commit Graph

26 Commits (027ac5ac1b4787ce00edaaa4ace1447d60bc9790)

Author SHA1 Message Date
Robin Malfait 3f9762e003
Handle the `DEFAULT` case for `matchVariant` (#635)
* handle the `DEFAULT` case

* Prettier

Co-authored-by: Brad Cornes <hello@bradley.dev>
2022-10-19 18:18:06 +01:00
Brad Cornes b26e122fac
Add automatic support for multi-config workspaces, including `@config` resolution (#633)
* wip

* wip

* Boot client if a CSS file contains `@config`

* wip

* Check document exists

* wip

* Fix duplicate document selector

* wip

* Use enum for document selector priorities

* Delete unused functions

* Remove unused state type

* Share glob patterns

* Update config file glob

* fix logs

* Fix filename checks on Windows

* Don't show error popups

* wip

* handle negated content paths

* Handle non-tailwind dependency installs

* add package root to document selectors

* tidy

* wip

* dedupe document selectors

* Fix `@config` regex

* Fix document selectors when using `experimental.configFile`

* Remove log
2022-10-18 20:35:02 +01:00
Brad Cornes f59adbe35b Adopt `getVariants` API 2022-10-17 18:05:04 +01:00
Brad Cornes 1b730cb656 Theme helper improvements 2022-10-17 17:56:00 +01:00
Brad Cornes 86d93aaa18
Ignore commented out code (#599) 2022-09-01 15:06:47 +01:00
Brad Cornes a39da43e4c
Support `insiders` versions of `tailwindcss` (#571)
* Support `insiders` versions of `tailwindcss`

* Revert import reorder
2022-07-06 16:07:13 +01:00
Brad Cornes 15bc6dbc19 Improve `theme` helper detection 2022-06-02 14:40:37 +01:00
Brad Cornes 183cc2f863
Revert "Improve conflict diagnostics (#503)" (#525)
This reverts commit ddfaea21cc.
2022-04-13 22:24:02 +01:00
Remco Haszing bc2e5edd45
Convert dlv require statements to imports (#521)
It was already imported in one place, that appears to work fine.

Using `require` results in invalid ESM output, because `require` is not
defined in ES modules.
2022-04-13 17:10:47 +01:00
Brad Cornes ddfaea21cc
Improve conflict diagnostics (#503) 2022-03-04 15:41:44 +00:00
Brad Cornes 86497bb380
Rework language boundary detection (#502)
* Fix `classRegex` error

* Rework language boundary detection
2022-03-02 17:16:35 +00:00
Brad Cornes 4be5d9d082
Detect conflicting multi-rule classes (#498) 2022-02-25 13:20:02 +00:00
Lucas Vazquez 627d463f8f
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>
2022-02-23 11:18:53 +00:00
Brad Cornes 4e8918ad8c Disable variant order linting and sorting for tailwindcss v3 2021-12-06 15:40:54 +00:00
Brad Cornes 53743f2faa
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
2021-10-01 14:11:45 +01:00
Brad Cornes 569635067c update css helper hovers 2021-07-12 15:23:16 +01:00
Brad Cornes 579d580896 update diagnostic message 2021-07-07 12:37:41 +01:00
Akihiro Okuno 1da2139684
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
2021-07-06 18:33:46 +09:00
Brad Cornes c2345f0112 update `@tailwind` completions and diagnostics 2021-06-16 19:37:35 +01:00
Brad Cornes 4cee488fb4 fix @​variants completions/diagnostics in JIT mode (fixes #324) 2021-05-17 12:38:52 +01:00
Brad Cornes 15fd935c57 update diagnostic name 2021-05-05 14:52:22 +01:00
Brad Cornes a72226c141 update settings schema 2021-05-04 12:40:50 +01:00
Brad Cornes 99297add4e add jit support, refactor for general reliability 2021-05-03 18:00:04 +01:00
Brad Cornes b2d47d220b add hover, color decorator, linting support for classRegex setting (#129) 2020-12-07 15:39:44 +00:00
Brad Cornes 0cce870c13 update for at-apply changes in v2 2020-11-03 11:08:39 +00:00
Brad Cornes ccf7cd57a7 separate out tailwindcss-language-service package 2020-10-08 16:20:54 +01:00