Commit Graph

120 Commits (909d097c30a2729cff3ec74a89799113d9c3f570)

Author SHA1 Message Date
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 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 0a6e5def00
Replace `@vercel/ncc` with `esbuild` (#517)
* Use `esbuild`

* Replace direct `eval`

* Use `esbuild` for language server build
2022-04-13 13:54:33 +01:00
Brad Cornes e173a6fa64 Filter out empty `files.exclude` items 2022-01-24 12:21:15 +00:00
Brad Cornes 85cf5edccb Protect against undefined separator (#427) 2022-01-17 18:06:28 +00:00
Brad Cornes 9bc82821c7 Fix for missing `files` config 2022-01-17 15:40:55 +00:00
Brad Cornes 6eb310dfda Remove log 2022-01-17 15:21:43 +00:00
Brad Cornes 08927cb758 Add default excluded files (for non-vscode clients) 2022-01-17 15:14:09 +00:00
Brad Cornes 5b675434f0 Don't read configuration from `initializationOptions` 2022-01-17 13:58:13 +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 f5006a8ff2 Exclude `*` from class completions 2021-12-06 16:06:30 +00:00
Brad Cornes a655ad4701 Bump `@parcel/watcher`
Adds M1 builds for language server
2021-11-26 15:07:15 +00:00
Brad Cornes d256d5388e Update variant API for compatibility with `v3-alpha.2` 2021-11-05 16:13:22 +00:00
Brad Cornes 1557dfdabf Ensure jit state is reset 2021-11-05 12:38:54 +00:00
Brad Cornes 634b8c6fb1 Fix mode identification when using nested presets (#431) 2021-10-29 17:51:55 +01:00
Brad Cornes e786ece8c3 Catch errors when resolving config and creating context 2021-10-29 17:49:42 +01:00
Brad Cornes 1eb62db848 reinstate `console.log` override 2021-10-08 17:36:41 +01:00
Brad Cornes 80e2e5aba5 Fix resolution of WSL files on Windows (#411) 2021-10-08 16:48:44 +01:00
Brad Cornes d32e9cc086 bump `postcss` 2021-10-08 10:55:38 +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 365281ca61 update resolver options to support `exports` fields (#412) 2021-09-24 17:47:01 +01:00
Brad Cornes dce390d98c remove log 2021-09-17 17:48:16 +01:00
Brad Cornes b089cc3833 fix file event handler when file is in a dot folder (#389) 2021-09-17 15:55:41 +01:00
Brad Cornes fa68c54a01 find config files hiding in hidden folders (#389) 2021-09-10 14:46:27 +01:00
Brad Cornes a1e085d0cd inline `getModuleDependencies` 2021-09-10 12:30:03 +01:00
Brad Cornes 6d88a5c31c [server] Fix crash on M1 macs 2021-09-10 12:12:24 +01:00
Brad Cornes e2285c087c ignore watcher binary load errors 2021-06-15 20:39:16 +01:00
Brad Cornes c01fed9c9f resolve parcel watcher prebuilds from actual package 2021-06-14 15:42:35 +01:00
Brad Cornes 2deda99fe7 add parcel watcher 2021-06-14 14:11:29 +01:00
Brad Cornes 20da2b3e67 use lsp file events when available 2021-06-05 15:44:21 +01:00
Brad Cornes 405f22f339 fix separator (#343) 2021-06-05 15:39:15 +01:00
Brad Cornes cf7bb68e35 fix for canary releases 2021-06-04 15:07:32 +01:00
Brad Cornes 52ae09b4fa reinstate #341
Co-Authored-By: Rafał Chłodnicki <rchl2k@gmail.com>
2021-06-04 14:34:30 +01:00
Brad Cornes 4de605928b support tailwindcss v2.2 2021-06-04 12:17:00 +01:00
Brad Cornes bdb398bf80 add lerna and separate language server package 2021-06-01 12:37:15 +01:00
Brad Cornes 39733ae72a restructure 2020-05-03 15:57:15 +01:00
Brad Cornes 14ffaf4aea update color plucking logic (#113) 2020-05-02 13:22:49 +01:00
Brad Cornes 95b249409b support css properties with multiple values 2020-05-02 13:18:30 +01:00
Brad Cornes 8f2ca0a6b4 Merge branch 'next' of github.com:bradlc/vscode-tailwindcss into next 2020-04-30 19:25:29 +01:00
Matt Furden b61d24b52e Add additional eex languages 2020-04-30 01:57:06 -07:00
Brad Cornes a13290c276 show completion item color swatches for variable-alpha colors 2020-04-29 23:46:05 +01:00
Brad Cornes 1768f96b53 add `HTML (EEx)` language 2020-04-29 19:08:52 +01:00
Brad Cornes a52765fc0f add mustache (#58) 2020-04-29 11:05:02 +01:00
Brad Cornes d66c8200d3 add languages 2020-04-28 22:54:52 +01:00
Brad Cornes 777681aaa7 add docs url helper 2020-04-28 21:42:43 +01:00
Brad Cornes f3f1b3b259 fix config helper hover range 2020-04-28 21:19:28 +01:00
Brad Cornes 72ed62f730 fix zero values in CSS helper completion items 2020-04-28 00:30:32 +01:00
Brad Cornes 8ec7510e02 fix @tailwind completion item resolution 2020-04-28 00:07:07 +01:00
Brad Cornes feb19371f4 vary @tailwind completions based on version 2020-04-28 00:06:47 +01:00
Brad Cornes 2c1a520547 add @tailwind completions 2020-04-27 23:52:31 +01:00
Brad Cornes 6f5a942632 fix completion item order 2020-04-27 23:18:28 +01:00
Brad Cornes 01f37e2c30 add @screen completion item detail 2020-04-27 22:48:30 +01:00
Brad Cornes 2cd6b792c1 use user's separator 2020-04-27 22:23:22 +01:00
Brad Cornes fb9539ac46 update context completion items 2020-04-27 22:14:47 +01:00
Brad Cornes 15d387ea45 show config errors 2020-04-23 19:54:01 +01:00
Brad Cornes 568e078522 prevent crash on config error 2020-04-22 20:29:36 +01:00
Brad Cornes 850ad5c0a5 fix hover provider error on unknown class name 2020-04-22 19:18:57 +01:00
Brad Cornes 16725980b7 add @apply hover provider 2020-04-17 18:59:19 +01:00
Brad Cornes cb20c3bc86 remove variants filter 2020-04-16 22:44:52 +01:00
Brad Cornes 32dca9259b add emmet-style completions 2020-04-16 22:39:16 +01:00
Brad Cornes 3b50a445a3 refactor class name extraction and stringify 2020-04-13 01:44:43 +01:00
Brad Cornes 9caa94fcb8 add initial @variants completions 2020-04-12 23:48:57 +01:00
Brad Cornes 12fd0e9568 add screen directive completions 2020-04-12 18:11:41 +01:00
Brad Cornes ba8a6ff48d add directive completions 2020-04-12 17:55:32 +01:00
Brad Cornes 7b8ee549de add initial css helper hover 2020-04-12 17:53:22 +01:00
Brad Cornes a9a0983d8b add initial hover provider 2020-04-12 15:48:38 +01:00
Brad Cornes adadf06518 add vue/svelte support 2020-04-11 23:34:03 +01:00
Brad Cornes 072809d9b7 initial refactor 2020-04-11 22:20:45 +01:00