Skip to content

Add preliminary support for v4 #917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 44 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
94733dc
Move utls into separate file
thecrypticace Feb 18, 2024
341043b
Move document service to separate file
thecrypticace Feb 18, 2024
4121c07
Move project-related stuff into a separate file
thecrypticace Feb 18, 2024
b2f5cdd
Move `TW` class to separate file
thecrypticace Feb 18, 2024
ce93055
Add comment
thecrypticace Feb 18, 2024
21f07b3
Refactor
thecrypticace Feb 18, 2024
fb1ca64
Run server in the same process
thecrypticace Feb 18, 2024
a7c574a
Refactor
thecrypticace Feb 18, 2024
f24ba5a
Sync lanaguage server versions
thecrypticace Feb 18, 2024
bd6db30
Update types
thecrypticace Feb 18, 2024
6b5d0b0
Use local expect for concurrent tests
thecrypticace Feb 18, 2024
ef8f1e8
Eliminate a call into settings cache
thecrypticace Feb 19, 2024
1dc1e62
Start migration to feature based checks
thecrypticace Feb 19, 2024
1ac2edd
wip
thecrypticace Feb 19, 2024
c745909
Refactor project detection
thecrypticace Feb 23, 2024
4791823
Fix line endings
thecrypticace Feb 27, 2024
663d877
Add tests for v4
thecrypticace Feb 25, 2024
cd303cd
Detect v4 projects
thecrypticace Feb 25, 2024
4bda794
Load v4 projects
thecrypticace Feb 25, 2024
9dc2824
Add v4 support to colors, hovers, completions, and conflict diagnostics
thecrypticace Feb 25, 2024
294c057
wip
thecrypticace Feb 25, 2024
97c2547
wip
thecrypticace Feb 27, 2024
7a9c33d
wip
thecrypticace Feb 27, 2024
47fb13e
wip
thecrypticace Feb 28, 2024
c2a76a7
wip
thecrypticace Feb 28, 2024
aa16e69
wip
thecrypticace Feb 28, 2024
b32c80a
wip
thecrypticace Feb 28, 2024
4bb14d1
wip
thecrypticace Feb 29, 2024
2dd01de
wip
thecrypticace Mar 1, 2024
c846d29
wip
thecrypticace Mar 4, 2024
fb45636
Add test
thecrypticace Mar 4, 2024
d61cccc
wip
thecrypticace Mar 4, 2024
64bdead
Complete @theme variables
KrisBraun Mar 4, 2024
e8069f1
wip
thecrypticace Mar 4, 2024
bb8459c
wip
thecrypticace Mar 4, 2024
f8cd9ef
wip
thecrypticace Mar 4, 2024
208bd0b
Fix issues with v2 projects
thecrypticace Mar 4, 2024
b301213
Update test
thecrypticace Mar 4, 2024
845fc56
Update tests
thecrypticace Mar 4, 2024
3d760f1
Re-enable test
thecrypticace Mar 5, 2024
e995cf2
Use prettier to format CSS
thecrypticace Mar 5, 2024
e33bb3e
wip
thecrypticace Mar 5, 2024
3aa6b6f
wip
thecrypticace Mar 5, 2024
3fa3f04
Fix CS
thecrypticace Mar 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
175 changes: 150 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions packages/tailwindcss-language-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"@tailwindcss/aspect-ratio": "0.4.2",
"@tailwindcss/container-queries": "0.1.0",
"@tailwindcss/forms": "0.5.3",
"@tailwindcss/language-service": "*",
"@tailwindcss/line-clamp": "0.4.2",
"@tailwindcss/typography": "0.5.7",
"@types/debounce": "1.2.0",
Expand Down Expand Up @@ -65,18 +66,19 @@
"postcss": "8.4.31",
"postcss-load-config": "3.0.1",
"postcss-selector-parser": "6.0.2",
"prettier": "2.3.0",
"prettier": "^2.8.8",
"resolve": "1.20.0",
"rimraf": "3.0.2",
"stack-trace": "0.0.10",
"tailwindcss": "3.4.1",
"@tailwindcss/language-service": "*",
"typescript": "5.3.3",
"vite-tsconfig-paths": "^4.3.1",
"vitest": "^1.1.2",
"vscode-css-languageservice": "6.2.9",
"vscode-jsonrpc": "8.1.0",
"vscode-languageserver": "8.0.2",
"vscode-languageserver-textdocument": "1.0.7",
"vscode-jsonrpc": "8.2.0",
"vscode-languageclient": "8.1.0",
"vscode-languageserver": "8.1.0",
"vscode-languageserver-textdocument": "1.0.11",
"vscode-uri": "3.0.2"
},
"prettier": {
Expand Down
10 changes: 10 additions & 0 deletions packages/tailwindcss-language-server/src/cache-map.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export class CacheMap<TKey = string, TValue = any> extends Map<TKey, TValue> {
remember(key: TKey, factory: (key: TKey) => TValue): TValue {
let value = super.get(key)
if (!value) {
value = factory(key)
this.set(key, value)
}
return value!
}
}
Loading