How to abort a task with result of custom command #2757
-
With the following The task What do I need to return from a custom command to abort the task?
{
"version": "2.0.0",
"tasks": [
{
"label": "echo with command",
"type": "shell",
"command": "echo",
"problemMatcher": [],
"args": [
"Picked option: ${input:pickOption}"
]
},
{
"label": "echo with pickString",
"type": "shell",
"command": "echo",
"problemMatcher": [],
"args": [
"Picked option: ${input:pickOptionNative}"
]
}
],
"inputs": [
{
"id": "pickOption",
"type": "command",
"command": "myextension.pickOption",
"args": {
"description": "Pick an option"
}
},
{
"id": "pickOptionNative",
"type": "pickString",
"description": "Pick an option (Native)",
"options": [
"Option A",
"Option B",
"Option C",
"Option D"
]
}
]
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Inspecting the source code I found the bug was introduced at 2025-03-18 |
Beta Was this translation helpful? Give feedback.
Inspecting the source code I found the bug was introduced at 2025-03-18