Closed
Description
- VSCode Version: 1.13.0
- OS Version: Windows 10 64bit
Steps to Reproduce:
- Open a folder with vscode
- Create
.vscode/tasks.json
- Add a task:
{
"taskName": "7. Check",
"command": "start",
"args": ["cmd /k \"${workspaceRoot}\\check.bat\""],
"showOutput": "never",
"isShellCommand": true
}
- Close all the files
- Run the task: 7. Check
'\check.bat' is not recognized as an internal or external command,
operable program or batch file.
If you skip 4. (or you have at least one open file) the file is executed properly.
The problem:
If there is no open file in the editor the ${workspaceRoot}
is equal to ""