Похоже, ваш tasks.json
файл изменился. Он должен иметь такую форму:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
// "global" options can go here
"options": {
"env": {
"APP_NAME": "Nice"
}
},
// you are missing the tasks array
"tasks": [
{ // task 1
"label": "Task A",
"type": "shell",
"command": "echo A2",
"problemMatcher": [],
"presentation": {
"group": "groupA"
}
// or task-specific options can go here
},
{ // task 2
"label": "Task B",
"type": "shell",
"command": "echo B",
"problemMatcher": [],
"presentation": {
"group": "groupA"
}
}
]
}
Так с вашим кодом:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"options": {
"env": {
"PATH":"\\gnucobol3\\bin",
"COB_CONFIG_DIR": "c:\\gnucobol3\\config",
"COB_COPY_DIR": "c:\\gnucobol3\\copy",
"COB_INCLUDE_PATH": "c:\\gnucobol3\\include",
"COB_LIB_PATH": "c:\\gnucobol3\\lib",
}
},
"tasks": [
{
"label": "GnuCOBOL - Compile (single file)",
"type": "shell",
"command": "cobc",
"args": [
"-x",
"-std=mf",
"-t${fileBasenameNoExtension}.LST",
"${file}"
]
}
]
}
}
}