Inconsistencies task.json vs. task.json schema #243556
Labels
bug
Issue identified by VS Code Team member as probable bug
help wanted
Issues identified as good community contribution opportunities
tasks
Task system issues
Type: Bug
When trying to validate my task.json against the task.json schema published in the Appendix I noticed some inconsistencies.
beginsPattern
/endsPattern
The schema defines them this way in the
BackgroundMatcher
interfaceBut in VS Code I can define them this way:
So while the schema restricts the value to be string, it also accepts
regexp
in reality. Also IntelliSense provides this as a valid entry.Missing property "type"
The
TaskDescription
interface defines thetype
like thistype: 'shell' | 'process';
It is therefore defined as a mandatory field. But in reality it is not. Otherwise it would not be possible to create a compound task as described in Compound Tasks
Missing property "command"
The
TaskDescription
interface defines thecommand
like thiscommand: string;
It is therefore defined as a mandatory field. But in reality it is not. Otherwise it would not be possible to create a compound task as described in Compound Tasks
VS Code version: Code 1.98.1 (2fc07b8, 2025-03-10T15:38:08.854Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 5.15.167.4-microsoft-standard-WSL2
The text was updated successfully, but these errors were encountered: