Skip to content

Task.json "Matches multiple schemas when only one must validate." #68006

@roa-nyx

Description

@roa-nyx

Issue Type: Bug

I am creating tasks.json entries similar to https://github.com/...

My final tasks.json is:

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "watch-app",
            "dependsOn": [
                "watch-app-cs",
                "watch-app-js"
            ],
            "problemMatcher": []
        },
        {
            "label": "watch-app-cs",
            "type": "shell",
            "options": {
                "cwd": "./App"
            },
            "command": "dotnet",
            "args": [
                "watch",
                "run"
            ],
            "presentation": {
                "group": "watch-app"
            }
        },
        {
            "label": "watch-app-js",
            "type": "shell",
            "options": {
                "cwd": "./App"
            },
            "command": "npm",
            "args": [
                "run",
                "watch"
            ],
            "presentation": {
                "group": "watch-app"
            }
        }
    ]
}

And it appears to work, however when I have the tasks.json file open the { above "label": "watch-app" has a green squiggly underline and hovering over it gives me "Matches multiple schemas when only one must validate."

Am I doing something wrong? Or should this actually be treated as valid?

VS Code version: Code 1.31.0 (7c66f58, 2019-02-05T22:35:56.624Z)
OS version: Windows_NT x64 10.0.17763

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2808)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 7.89GB (1.49GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (4)
Extension Author (truncated) Version
calculate aca 2.1.0
vscode-css-formatter aes 1.0.1
csharp ms- 1.17.1
unity-debug Uni 2.6.6

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugtasksTask system issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions