0

I have the following in my tasks.json file:

{
        "label": "closealleditorsingroup",
        "type": "shell",
        "command": "${input:closealleditorsingroup}",
        "runOptions": {
            "runOn": "folderOpen"
        }
},

where, "inputs" is like so:

"inputs":[
    {
        "type": "command",
         "id": "closealleditorsingroup",
        "command": "workbench.action.closeEditorsInGroup"
    }
]

When I open a folder with folder>code ., VSCode starts up in that folder and runs this task automatically. All open editors from previous session are closed. Yet, I obtain the following error after:

Cannot substitute input variable 'closealleditorsingroup' because command 
'workbench.action.closeEditorsInGroup' did not return a result of type string.

Is there a way to fix this error?

[X Post from https://www.reddit.com/r/vscode/comments/1p03jxf/error_on_running/]

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.