Add VS Code tasks

This commit is contained in:
Aoran Zeng 2025-06-18 22:14:53 +08:00
parent eb24afc650
commit f312dd3b8d
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 40 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
.vscode/*
!.vscode/settings.json
!.vscode/c_cpp_properties.json
!.vscode/tasks.json
!.vscode/README.md
*.o

39
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,39 @@
{
"tasks": [
{
"type": "shell",
"label": "构建 chsrc",
"command": "just",
"args": ["build"],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "使用 just build 编译"
},
{
"type": "shell",
"label": "测试 chsrc",
"command": "just",
"args": ["test"],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "test",
"isDefault": true
},
"detail": "使用 just test 测试"
}
],
"version": "2.0.0"
}