Commit Graph

107 Commits (fd5c1ef854adfdc6c59575c6a9e6dce17e2847e3)

Author SHA1 Message Date
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 875cb6f324 Tweak type 2022-10-17 18:35:55 +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 c9acd0d124
Fix IntelliSense when separator is `--` (#628)
* Fix IntelliSense when separator is `--`

* Tidy up
2022-10-13 09:23:19 +01:00
Brad Cornes d073bb9de6 Show completions when using parameterized and/or labelled variants 2022-10-07 16:54:25 +01:00
Brad Cornes 8aa2064684
Merge settings with defaults (#605) 2022-09-13 17:31:09 +01:00
Brad Cornes 86d93aaa18
Ignore commented out code (#599) 2022-09-01 15:06:47 +01:00
Josh Price 92410c1bf8
Support Surface templates (#597)
Surface support is defined here https://github.com/msaraiva/vscode-surface/blob/master/syntaxes/surface.json

See https://github.com/tailwindlabs/tailwindcss-intellisense/issues/407 and 1253902e88
2022-08-30 10:06:34 +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 d09a4b11f1
Deduplicate classlist candidates (#572) 2022-07-06 16:40:29 +01:00
Brad Cornes 05a8685c49 Bump `dset` to `v3.1.2` 2022-07-06 16:12:54 +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 76cbaa4948
Add support for arbitrary variants (#557)
* Support arbitrary variants

* Bump typescript and types versions
2022-05-26 11:31:22 +01:00
Brad Cornes a2b694c3e0
Fix overeager `<style>` detection (#543) 2022-04-28 12:14:36 +01:00
Brad Cornes 78a20f4daf
Add `experimental.configFile` setting (#541)
* Add experimental `configFile` setting

* Fix initial capability registration

* Update readme

* Add setting default and description

* Remove unused variable

* Be more defensive when reading setting

* Fix type

* Fix type
2022-04-25 15:06:31 +01:00
Brad Cornes c56e800f23
Add settings to enable/disable specific features (#535)
* Add `suggest` and `hover` settings

* Rename settings, add `codeActions` setting
2022-04-20 15:04:51 +01:00
Brad Cornes cd1678bd8d
Fix language features when using nested Vue `<template>` (#532) 2022-04-19 15:02:27 +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 fbbd4bc2d0
Add Tailwind CSS language mode (#518)
* Use `esbuild`

* Replace direct `eval`

* add initial language mode

* Update capabilities, add rename provider

* Update vscode types

* Add completion middleware to match built-in CSS provider

* Update language config to match built-in CSS language

* Add folding region completion provider

* Add stylesheet cache

* Add log and error handling

* Update settings handling, debounce validation

* Fix response flakiness by always augmenting CSS

* Respect folding range limit

* Use uncommon symbol as `@media` placeholder

* Update readme

* Use `esbuild` for language server build

* Add `theme()` completion item

* Avoid errors when using `@media screen()`

* Update readme

* Add CSS server to build script

* Rename language mode server file in prod

* Update VS Code `engines` and types versions

* Update grammar
2022-04-13 14:05:41 +01:00
Brad Cornes d344400688 Fix flakiness caused by expired cache entries 2022-04-12 19:11:48 +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 a082bb3fd7
Fix `classRegex` error (#501) 2022-02-28 13:49:07 +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
dozyio 32e202a149
Add support for gohtmltmpl files for Hugo (#473) 2022-02-15 22:29:48 +00:00
Brad Cornes ff52e815b6 Add `files.exclude` setting 2022-01-07 17:13:11 +00:00
Brad Cornes 6fdef8616a Add bundled version of `tailwindcss` and first-party plugins 2022-01-07 11:42:39 +00:00
Brad Cornes 4e8918ad8c Disable variant order linting and sorting for tailwindcss v3 2021-12-06 15:40:54 +00:00
Brad Cornes e47f5fa539 Ignore `content: var(--tw-content)` when determining color 2021-11-05 16:29:34 +00:00
Brad Cornes ba21a2f1d8 fix color detection 2021-10-08 18:24:57 +01:00
Brad Cornes 251d32faaf increase classlist search range (#414) 2021-10-08 17:36:17 +01:00
Brad Cornes d74a53ae9e update color extraction to allow parentheses (#423) 2021-10-08 17:06:10 +01:00
Brad Cornes 0f4d93b96e add `classAttributes` setting 2021-10-08 16:51:14 +01:00
Brad Cornes d32e9cc086 bump `postcss` 2021-10-08 10:55:38 +01:00
Brad Cornes d641b8eb2b allow whitespace around class attribute `=` (#426) 2021-10-04 18:14:24 +01:00
Brad Cornes 214e2b487b add `accent-color` to list of color-related CSS properties 2021-10-04 16:10:16 +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 a4f5a5f287 tweak style block regexes 2021-09-29 16:38:23 +01:00
Brad Cornes 62ddc243d3 Merge branch 'master' into bugfix-style 2021-09-24 17:48:42 +01:00
Brad Cornes 1253902e88 add `phoenix-heex` language (#407) 2021-09-24 16:11:23 +01:00
Brad Cornes 7e2b53cd11 avoid false positives when parsing colors (#415) 2021-09-24 15:05:07 +01:00
Brad Cornes 6367de3870 update `<style>` patterns 2021-09-10 12:33:35 +01:00
Brad Cornes 6812188323 Fix error when rule doesn't have a parent 2021-09-03 13:23:55 +01:00