Commit Graph

116 Commits (19cb859b5d92897c16cdd271786ca07d8d06d011)

Author SHA1 Message Date
Ignace Maes 3c0f17cadd
Add support for Glimmer(#867)
* feat: add glimmer langs

* feat: inject into gjs/gts

* Update changelog

---------

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2023-10-18 11:33:14 -04:00
Brad Cornes 4c702acf85
Fix `classRegex` offset (#846) 2023-08-21 13:05:27 +01:00
Brad Cornes 47d512edde
Expand `classRegex` search range (#840) 2023-08-16 17:03:36 +01:00
Brad Cornes 316357530f
Fix `classRegex` hovers in unknown contexts (#824) 2023-07-18 15:14:51 +01:00
Brad Cornes a6c19d7cb4
Fix IntelliSense following closing script/style tag containing whitespace (#808) 2023-06-27 11:02:17 +01:00
Max 35b9d115bb
Migrate from deprecated text document (#781)
* Removed instances of deprecated TextDocument

* Replaced TextDocument type in diagnostics
2023-05-15 11:21:43 +01:00
Brad Cornes 460d921ca3
Include pixel equivalents in more places (#775)
* Show pixel equivalents for more `rem`/`em` values

* Add pixel equivalents to media query variant completions
2023-05-02 10:44:37 +01:00
Brad Cornes ae99cbfafc
Enable IntelliSense for `<script lang="tsx">` (#773) 2023-04-28 17:34:36 +01:00
Brad Cornes 9b47dd0597
Fix CSS conflict diagnostics in semicolonless CSS documents (#771) 2023-04-27 18:17:13 +01:00
Brad Cornes 8266d6b0aa
Resolve helper functions in CSS previews (#766) 2023-04-25 16:47:12 +01:00
Brad Cornes 6fa8861efd
Fix CSS conflict diagnostic false negatives (#761) 2023-04-18 08:54:14 +01:00
Brad Cornes 105b8b86ec
Increase class search range (#760) 2023-04-17 12:09:05 +01:00
Brad Cornes 6c2dbf7355
Fix `theme` helper handling when specifying default value (#747)
* Fix `theme` helper handling when specifying default value

* Tidy
2023-03-27 20:20:21 +01:00
Brad Cornes db61c8891b
Exclude classes in `blocklist` from IntelliSense (#746) 2023-03-27 18:56:02 +01:00
Remco Haszing ae18cb2449
Remove language service dependency on TextDocuments (#742)
The code actions API depends on `TextDocuments`. This is specific to the
language server. This makes it hard to use without a language server.

The use of `TextDocuments` has been removed. Instead, the resolved text
document is passed down.
2023-03-27 18:39:56 +01:00
Brad Cornes 28b4abb644
Support TS/ESM config files (#738) 2023-03-20 11:12:02 +00:00
Brad Cornes 05f8df0f60
Improve JS comment handling (#727) 2023-03-10 14:28:03 +00:00
Brad Cornes 7e3b93dd87
Fix IntelliSense inside Handlebars template scripts (#726) 2023-03-10 13:45:54 +00:00
Iain McNulty 8a2df180a8
Add `htmldjango` (vim filetype) to languages (#721) 2023-03-10 11:16:35 +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 07189b01bc
Revert "Remove `typescript` from list of languages (#645)" (#690)
This reverts commit 19a550d0de.
2023-01-04 14:06:38 +00:00
Brad Cornes b0e4fadc4f
Tweak `theme` helper detection (#689) 2023-01-04 10:34:41 +00:00
Brad Cornes 07ad87e8da
Support class modifiers (#686) 2023-01-03 16:22:15 +00:00
Brad Cornes 9bff008eae
Improve `theme` helper detection (#655) 2022-11-07 12:10:16 +00:00
Brad Cornes 0625c6de35
Fix duplicate color decorators (#652) 2022-11-04 10:56:23 +00:00
Usman Sabuwala (Max Programming) 19a550d0de
Remove `typescript` from list of languages (#645)
* Comment out typescript from list of languages

* Update languages.ts

Co-authored-by: Brad Cornes <hello@bradley.dev>
2022-11-01 12:18:35 +00:00
Brad Cornes 733d872d8d
Improve extraction for variable colors (#638) 2022-10-20 12:59:28 +01:00
Robin Malfait 3f9762e003
Handle the `DEFAULT` case for `matchVariant` (#635)
* handle the `DEFAULT` case

* Prettier

Co-authored-by: Brad Cornes <hello@bradley.dev>
2022-10-19 18:18:06 +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 875cb6f324 Tweak type 2022-10-17 18:35:55 +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 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