From 95c5731a3339f5ad41b69ad596da7b4eb283a1da Mon Sep 17 00:00:00 2001 From: chenfengfeng123 Date: Mon, 13 Apr 2026 11:27:24 +0800 Subject: [PATCH 1/2] Optimize launch.json --- .vscode/launch.json | 12 +++++++++++- .vscode/tasks.json | 6 +++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 45983d374bb..c6b336a24a7 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -22,6 +22,11 @@ "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true + }, + { + "description": "Do not stop on SIGPIPE", + "text": "handle SIGPIPE nostop noprint pass", + "ignoreFailures": true } ], "preLaunchTask": "build", @@ -50,6 +55,11 @@ "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true + }, + { + "description": "Do not stop on SIGPIPE", + "text": "handle SIGPIPE nostop noprint pass", + "ignoreFailures": true } ], "preLaunchTask": "build", @@ -112,4 +122,4 @@ "sourceLanguages": ["cpp"] } ] -} \ No newline at end of file +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json index ca55beabf4a..9656fa60195 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -4,7 +4,7 @@ { "label": "build", "type": "shell", - "command": "cd ${workspaceFolder}/cmake/build && cmake --build . --target srs utest", + "command": "if [ ! -f \"${workspaceFolder}/cmake/build/CMakeCache.txt\" ]; then cmake -S \"${workspaceFolder}/cmake\" -B \"${workspaceFolder}/cmake/build\"; fi && cmake --build \"${workspaceFolder}/cmake/build\" --target srs utest", "group": { "kind": "build", "isDefault": true @@ -15,7 +15,7 @@ { "label": "st-build", "type": "shell", - "command": "cd ${workspaceFolder}/cmake/build && cmake --build . --target st_utest", + "command": "if [ ! -f \"${workspaceFolder}/cmake/build/CMakeCache.txt\" ]; then cmake -S \"${workspaceFolder}/cmake\" -B \"${workspaceFolder}/cmake/build\"; fi && cmake --build \"${workspaceFolder}/cmake/build\" --target st_utest", "group": { "kind": "build", "isDefault": true @@ -25,4 +25,4 @@ } ] } - \ No newline at end of file + From 9884c74a8a37ad4ec2786697997958e7e16effa7 Mon Sep 17 00:00:00 2001 From: chenfengfeng123 Date: Mon, 13 Apr 2026 11:28:27 +0800 Subject: [PATCH 2/2] code format --- .vscode/tasks.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 9656fa60195..0d42e0a209d 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -24,5 +24,6 @@ "detail": "Build ST by cmake." } ] - } +} +