修改vscode 编译配置

This commit is contained in:
liyunjia 2024-06-19 20:53:33 +08:00
parent 991d1e478b
commit cf5c5286c0
2 changed files with 7 additions and 4 deletions

2
.vscode/launch.json vendored
View File

@ -8,7 +8,7 @@
"program": "${workspaceRoot}/target/debug/${workspaceFolderBasename}",
"args": [],
"cwd": "${workspaceRoot}",
"preLaunchTask":"build",
"preLaunchTask":"rust: cargo build",
}
]
}

9
.vscode/tasks.json vendored
View File

@ -2,13 +2,16 @@
"version": "2.0.0",
"tasks": [
{
"type": "cargo",
"command": "build",
"type": "process",
"command": "cargo",
"args": [
"build"
],
"problemMatcher": [
"$rustc"
],
"group": "build",
"label": "build"
"label": "rust: cargo build"
}
]
}