Commit Graph

104 Commits (53560ea07169c9253b42325b13af0230deb8383c)

Author SHA1 Message Date
Brad Cornes 53560ea071 Bump `@tailwindcss/language-server` 2022-09-12 11:12:10 +01:00
Brad Cornes 8f9088a15c Update `ThirdPartyNotices.txt` 2022-09-12 11:07:54 +01:00
Brad Cornes c3885adf3e Update lockfiles 2022-09-12 11:07:33 +01:00
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