From cf5c5286c07a5dce411efac227c49ff1f8d9e113 Mon Sep 17 00:00:00 2001 From: liyunjia Date: Wed, 19 Jun 2024 20:53:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9vscode=20=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 2 +- .vscode/tasks.json | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 14cd719..93ffb39 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,7 +8,7 @@ "program": "${workspaceRoot}/target/debug/${workspaceFolderBasename}", "args": [], "cwd": "${workspaceRoot}", - "preLaunchTask":"build", + "preLaunchTask":"rust: cargo build", } ] } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 50cd549..a131727 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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" } ] } \ No newline at end of file