Commit Graph

61 Commits (5c59d6f59b201471b30adae7d6a5fa085bbd7b59)

Author SHA1 Message Date
Max 35b9d115bb
Migrate from deprecated text document (#781)
* Removed instances of deprecated TextDocument

* Replaced TextDocument type in diagnostics
2023-05-15 11:21:43 +01:00
Brad Cornes 460d921ca3
Include pixel equivalents in more places (#775)
* Show pixel equivalents for more `rem`/`em` values

* Add pixel equivalents to media query variant completions
2023-05-02 10:44:37 +01:00
Brad Cornes 105b8b86ec
Increase class search range (#760) 2023-04-17 12:09:05 +01:00
Brad Cornes db61c8891b
Exclude classes in `blocklist` from IntelliSense (#746) 2023-03-27 18:56:02 +01:00
Brad Cornes cf2a5535b9
Add modifier completions for `@apply` and `classRegex` configs (#732) 2023-03-13 10:29:11 +00:00
Brad Cornes ef09d7431f Revert "Improve completions when class contains trigger character" 2023-01-27 17:11:37 +00:00
Brad Cornes 086dfb4c28 Fix missing parameter 2023-01-27 16:58:51 +00:00
Brad Cornes 0b2db09a22 Improve completions when class contains trigger character 2023-01-27 15:48:53 +00:00
Brad Cornes 862af2289f
Improve completions when class contains trigger character (#710)
* Improve completions when class contains trigger character

* wip

* wip
2023-01-27 13:24:41 +00:00
Brad Cornes 0fab387f77
Update `context.getClassList` usage (#707)
* Update `context.getClassList` usage

* fix default metadata
2023-01-27 10:33:35 +00:00
Brad Cornes 637f838725
Use `itemDefaults` to reduce size of completion lists (#706)
* Use completion list `itemDefaults`

* more defaults
2023-01-27 10:30:27 +00:00
Brad Cornes b0e4fadc4f
Tweak `theme` helper detection (#689) 2023-01-04 10:34:41 +00:00
Brad Cornes 07ad87e8da
Support class modifiers (#686) 2023-01-03 16:22:15 +00:00
Brad Cornes ea5aff58f0 Add documentation for `@config` completion 2022-10-21 12:09:57 +01:00
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 0b2a208d27 Remove arbitrary value snippet placeholder
`&` doesn't always make sense as a placeholder, for example with the container queries plugin
2022-10-18 14:04:33 +01:00
Brad Cornes 8393aa68bf Fix completion text 2022-10-18 14:03:51 +01:00
Brad Cornes 2509d09857 Remove unused import 2022-10-17 18:07:29 +01:00
Brad Cornes f59adbe35b Adopt `getVariants` API 2022-10-17 18:05:04 +01:00
Brad Cornes bf57dd14bc Add support for `@config` 2022-10-17 17:59:07 +01:00
Brad Cornes 1b730cb656 Theme helper improvements 2022-10-17 17:56:00 +01:00
Brad Cornes 8aa2064684
Merge settings with defaults (#605) 2022-09-13 17:31:09 +01:00
Brad Cornes 112fae6a6c
Replace `multi-regexp2` with `becke-ch--regex--s0-0-v1--base--pl--lib` (#590) 2022-08-05 16:58:50 +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 76cbaa4948
Add support for arbitrary variants (#557)
* Support arbitrary variants

* Bump typescript and types versions
2022-05-26 11:31:22 +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 86497bb380
Rework language boundary detection (#502)
* Fix `classRegex` error

* Rework language boundary detection
2022-03-02 17:16:35 +00:00
Brad Cornes 4e8918ad8c Disable variant order linting and sorting for tailwindcss v3 2021-12-06 15:40:54 +00:00
Brad Cornes 251d32faaf increase classlist search range (#414) 2021-10-08 17:36:17 +01:00
Brad Cornes 0f4d93b96e add `classAttributes` setting 2021-10-08 16:51:14 +01:00
Brad Cornes d641b8eb2b allow whitespace around class attribute `=` (#426) 2021-10-04 18:14:24 +01: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 79a3f2b5a1 use character-base ranges when looking for classes 2021-08-13 17:59:14 +01:00
Brad Cornes c2345f0112 update `@tailwind` completions and diagnostics 2021-06-16 19:37:35 +01:00
Brad Cornes 14ec688199 formatting 2021-06-04 17:00:34 +01:00
Brad Cornes 388cbb8351 tweak opacity modifier completions 2021-06-04 17:00:27 +01:00
Brad Cornes b7bf51f156 fix completions and hovers inside `<style>` (fixes #334) 2021-05-20 16:50:10 +01:00
Brad Cornes b8dc88d699 show pixel equivalents in jit mode (fixes #332) 2021-05-20 13:24:16 +01:00
Brad Cornes 5cf4b1717d [JIT] add opacity modifier completions 2021-05-18 12:22:18 +01:00
Brad Cornes 4cee488fb4 fix @​variants completions/diagnostics in JIT mode (fixes #324) 2021-05-17 12:38:52 +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 5a810fd193 tweak pixel equivalent comment spacing (#200) 2021-02-07 20:58:41 +00:00
Brad Cornes 14f0fe9f3f replace `experimental.showPixelValues` setting with `showPixelEquivalents` and enable by default (#200) 2021-02-05 14:49:06 +00:00
Brad Cornes 0e66dac7b7 update class attribute regex (#233) 2021-01-08 15:53:02 +00:00
Brad Cornes 4b10581005 add emmet noise check (#146) 2020-12-10 17:22:06 +00:00
Brad Cornes b2d47d220b add hover, color decorator, linting support for classRegex setting (#129) 2020-12-07 15:39:44 +00:00
Brad Cornes 534eb253ac update custom regex support (#129)
fixes "ors" in regexes
2020-12-02 13:52:09 +00:00
Brad Cornes d115e008d1 remove log 2020-12-02 13:29:56 +00:00
Brad Cornes 615fd7f630 add experimental showPixelValues setting 2020-12-01 19:05:58 +00:00