Skip to content

Commit cd7aab8

Browse files
committed
Update .vscode for launching Zig
1 parent 75e1708 commit cd7aab8

File tree

3 files changed

+28
-6
lines changed

3 files changed

+28
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*
22
!*/
33
!.vscode/launch.json
4+
!.vscode/tasks.json
45
!libs/**/*
56
libs/**/zig-cache
67
!Media/*

.vscode/launch.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": "main.py",
9-
"type": "python",
8+
"name": "zig",
9+
"type": "cppvsdbg",
1010
"request": "launch",
11-
"program": "main.py",
11+
"program": "${workspaceFolder}/zig-out/bin/cc-legacy-mod-converter",
12+
"args": [],
13+
"cwd": "${workspaceFolder}",
1214
"console": "integratedTerminal",
13-
"justMyCode": false
14-
},
15+
"preLaunchTask": "build zig"
16+
}
1517
]
16-
}
18+
}

.vscode/tasks.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build zig",
6+
"type": "shell",
7+
"command": "zig",
8+
"args": [
9+
"build",
10+
"-freference-trace",
11+
],
12+
"problemMatcher": [],
13+
"group": {
14+
"kind": "build",
15+
"isDefault": true
16+
}
17+
}
18+
]
19+
}

0 commit comments

Comments
 (0)