Commit Graph

151 Commits (1c09f663f5406a33a04a6e54fa115620eace1f7c)

Author SHA1 Message Date
A.I d32e11fa60
fix: guard against optional client capabilities (#602)
for client like lsp-mode for emacs which doesn't have colorProvider,
server is failing to start, and according to the specification, the
capabilities here is all optional, so we should guard the nil situation.
2022-09-12 10:13:02 +01:00
Brad Cornes aeb1595b86
Use patched version of `enhanced-resolve` (#600) 2022-09-07 16:49:29 +01:00
Brad Cornes f7463a87ee Bump vs code dependencies 2022-09-07 16:45:22 +01:00
Brad Cornes 0efcdd773e
Support `node:` module prefix (#585) 2022-07-25 17:43:37 +01:00
Brad Cornes d298014070
Support `require.extensions` mutations (#583) 2022-07-25 16:28:54 +01:00
Brad Cornes 4b0a5f332f Remove `terser` dependency, update lockfiles 2022-07-22 18:11:58 +01:00
Brad Cornes f368c1c454
Don't watch `package.json` files (#573) 2022-07-06 17:08:36 +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 6f298b2e19 Fix `@types/vscode` version 2022-05-30 11:24:25 +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 82d0d442e8 Account for undefined dependencies 2022-05-16 11:00:34 +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
Remco Haszing 97bfbb1c3e
Add missing package metadata (#526)
* Add missing package metadata

* Remove `tailwindcss-language-service` metadata

Co-authored-by: Brad Cornes <hello@bradley.dev>
2022-04-19 15:09:29 +01:00
Brad Cornes 7dd5646e6f Update notices 2022-04-13 14:59:23 +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
dependabot[bot] de3861757c
Bump ansi-regex in /packages/tailwindcss-language-server (#512)
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-01 15:24:00 +01:00
dependabot[bot] 2f1f1e5884
Bump minimist in /packages/tailwindcss-language-server (#509)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-01 13:01:59 +01:00
dependabot[bot] 316e6ffa61
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>
2022-02-15 14:38:13 +00: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 bb5993d047 Bump `@tailwindcss/language-server` 2022-01-17 16:54:11 +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 fb6eb56fd0 Bump `@tailwindcss/language-server` 2022-01-17 15:18:25 +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 ddabfe9390 Bump language server 2021-11-26 15:20:10 +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 febded6864 update tsconfig 2021-10-08 18:24:11 +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 38b596b846 bump language server version 2021-09-10 14:46:00 +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 7ea4a462e2 v0.6.14 2021-08-18 13:05:06 +01:00
Brad Cornes 8c0c777c65 update language server package 2021-08-13 12:46:40 +01:00
Brad Cornes 7090111539 add license and third-party notices for language server package 2021-07-12 17:24:19 +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 44e6b9ab9d fix `@types/vscode` version 2021-06-04 12:21:23 +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 63f8c0ff07 build and package updates 2020-04-28 22:58:24 +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 08bfebec9c add missing dep 2020-04-19 17:41:16 +01:00
Brad Cornes 1c26324860 add missing dep 2020-04-19 17:32:07 +01:00
Brad Cornes dd553d9d03 remove unused deps 2020-04-17 19:10:19 +01:00
Brad Cornes 928f485a5d remove lerna deps 2020-04-17 19:09:37 +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