Commit cb0f305
Support loading TypeScript configs and plugins in v4 projects (#1076)
Fixes #1072
We already have tests to cover this case but vitest hooks into module
loading which lets us load TypeScript during tests. I tested it by
running the tests against the server running as a separate node process
rather than importing the sources and running the server in-process.
The test harness is already set up for this so the only change needed to
test this manually was this:
<img width="416" alt="Screenshot 2024-10-25 at 15 43 28"
src="https://github.com/user-attachments/assets/6dfc4d1e-e60e-4450-a34b-c231515922ed">
---------
Co-authored-by: Robin Malfait <[email protected]>1 parent 5798007 commit cb0f305
File tree
4 files changed
+28
-1
lines changed- packages
- tailwindcss-language-server
- src/util/v4
- vscode-tailwindcss
4 files changed
+28
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
25 | 41 | | |
26 | 42 | | |
27 | 43 | | |
| |||
45 | 61 | | |
46 | 62 | | |
47 | 63 | | |
48 | | - | |
| 64 | + | |
49 | 65 | | |
50 | 66 | | |
51 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments