Commit Graph

143 Commits (33f94bae1a74621ca94ce62fa5053d64e6736203)

Author SHA1 Message Date
Brad Cornes 33f94bae1a
Fix use of certain built-in node modules in config file (#745) 2023-03-26 18:20:24 +01:00
Brad Cornes fdc64cfef1 Fix `getModuleDependencies`
439fdadb3a
2023-03-20 18:57:44 +00:00
Brad Cornes d14c81f45d
Replace `detective-typescript` (#739) 2023-03-20 17:46:45 +00:00
Brad Cornes 28b4abb644
Support TS/ESM config files (#738) 2023-03-20 11:12:02 +00:00
Brad Cornes 5038f6d57b Bump language server version 2023-03-13 12:27:10 +00:00
Brad Cornes 016373e79a
Bundle `@tailwindcss/container-queries` (#733) 2023-03-13 11:21:29 +00:00
Brad Cornes ce897c9b12
Support `InitializeParams.rootUri` (#725)
* Support `InitializeParams.rootUri`

* Remove log
2023-03-10 11:09:36 +00:00
Brad Cornes 5376ee1e7a update `package-lock.json` 2023-02-03 12:12:43 +00:00
Brad Cornes 4b215ba92e Bump `@tailwindcss/language-server` 2023-01-31 17:28:18 +00:00
Brad Cornes 744e588219 Update `ThirdPartyNotices.txt` 2023-01-31 17:16:31 +00:00
Brad Cornes 8e70fbb460
Add workspace root document selector when there's exactly one active project (#711) 2023-01-27 13:40:13 +00:00
Brad Cornes 8c152bd650
Only watch directories up to workspace root (#709)
* Don't watch beyond workspace root

* Catch errors when adding paths to chokidar watcher

* Normalize paths

* wip
2023-01-27 11:24:28 +00:00
Brad Cornes 7fdf6c437d
Normalize document selector pattern (#708) 2023-01-27 10:35:37 +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 9087b89dc1
Bump `minimatch` to `5.1.4` (#699) 2023-01-16 20:01:26 +00:00
Brad Cornes 86850376db Reduce size of project key in completion items 2023-01-16 19:28:49 +00:00
Brad Cornes dd6bb57f68
Escape brackets in glob patterns (#694) 2023-01-05 14:56:39 +00:00
Brad Cornes d0b4a3ecda
Fix document selector when `configFile` setting is a string (#693) 2023-01-05 14:28:04 +00:00
Brad Cornes f07eeddca7 Bump bundled version of `tailwindcss` to `3.2.4` 2023-01-03 16:35:27 +00:00
Brad Cornes 07ad87e8da
Support class modifiers (#686) 2023-01-03 16:22:15 +00:00
dependabot[bot] 50a5918164
Bump json5 from 2.2.0 to 2.2.3 in /packages/tailwindcss-language-server
Bumps [json5](https://github.com/json5/json5) from 2.2.0 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.0...v2.2.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-02 10:57:29 +00:00
Merrick Luo 0a900b9bf6
Fix method called before initialize (#667)
wait for init in onInitialize before sending response to the client,
so that client won't try to do request before the lsp handlers are registered.
2022-12-13 17:05:12 +00:00
dependabot[bot] 027ac5ac1b
Bump decode-uri-component from 0.2.0 to 0.2.2 (#669)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-06 10:51:44 +00:00
anbcodes a740b0e240
Fix error when `initializationOptions` is undefined (#656)
Co-authored-by: Anbcodes <me@anb.codes>
2022-11-09 10:01:34 +00:00
Brad Cornes 55d2b9e8da
Improve `experimental.configFile` in multi-root workspaces (#640) 2022-10-20 18:41:01 +01:00
Brad Cornes aa282c19a0 Bump versions, update lockfiles and notices 2022-10-20 18:03:15 +01:00
Brad Cornes 8d42934ea2 Bump bundled version of `tailwindcss` to `3.2.0` 2022-10-20 17:59:31 +01:00
Brad Cornes 30bf090d71 Add missing default function 2022-10-20 17:48:54 +01:00
Brad Cornes b26e122fac
Add automatic support for multi-config workspaces, including `@config` resolution (#633)
* wip

* wip

* Boot client if a CSS file contains `@config`

* wip

* Check document exists

* wip

* Fix duplicate document selector

* wip

* Use enum for document selector priorities

* Delete unused functions

* Remove unused state type

* Share glob patterns

* Update config file glob

* fix logs

* Fix filename checks on Windows

* Don't show error popups

* wip

* handle negated content paths

* Handle non-tailwind dependency installs

* add package root to document selectors

* tidy

* wip

* dedupe document selectors

* Fix `@config` regex

* Fix document selectors when using `experimental.configFile`

* Remove log
2022-10-18 20:35:02 +01:00
Brad Cornes 315070a2aa Bump `tailwindcss` and plugins 2022-10-18 17:04:50 +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 72569b00dd
Fix `configFile` path resolution (#617) 2022-09-30 15:09:12 +01:00
Brad Cornes f49c7e84a1 Bump `@tailwindcss/language-server` 2022-09-13 17:35:00 +01:00
Brad Cornes 8aa2064684
Merge settings with defaults (#605) 2022-09-13 17:31:09 +01:00
Brad Cornes f2e0256b9e Update `@types/vscode` and VS Code `engines` version 2022-09-12 11:31:00 +01:00
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