Skip to content

Commit ed74212

Browse files
unstubbablealii
authored andcommitted
Add VSCode tasks to show TypeScript compilation errors in problems view (vercel#81799)
Showing compilation errors for files that aren't currently open is very useful during refactorings. https://github.com/user-attachments/assets/629f8f2a-37ba-44c1-be6d-9a2e0f93e4f1
1 parent ae5efd9 commit ed74212

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.vscode/tasks.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "types",
6+
"command": "pnpm",
7+
"args": ["typescript", "--watch"],
8+
"isBackground": true,
9+
"group": {
10+
"kind": "build"
11+
},
12+
"problemMatcher": ["$tsc-watch"]
13+
},
14+
{
15+
"label": "types-next",
16+
"command": "pnpm",
17+
"args": ["types", "--watch"],
18+
"options": {
19+
"cwd": "${workspaceFolder}/packages/next"
20+
},
21+
"isBackground": true,
22+
"group": {
23+
"kind": "build"
24+
},
25+
"problemMatcher": {
26+
"base": "$tsc-watch",
27+
"fileLocation": ["relative", "${workspaceFolder}/packages/next"]
28+
}
29+
}
30+
]
31+
}

0 commit comments

Comments
 (0)