vstask icon indicating copy to clipboard operation
vstask copied to clipboard

Add an option to run the default build task

Open Calinou opened this issue 10 months ago • 0 comments

Would it be possible to add a -b/--build option to run the default build task as configured in tasks.json?

For example, with this tasks.json I'm using for Godot development, I'd like vstask -b to run Build (Linux debug editor) without having to specify its full name:

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Rebuild (disabled due to Ninja bugs)",
            "type": "shell",
            "command": "ninja && notify-send --app-name 'Godot' 'Editor build successful' || notify-send --app-name 'Godot' --icon error 'Editor build FAILED'",
            "problemMatcher": [],
            "group": {
                "kind": "build",
                "isDefault": false
            }
        },
        {
            "label": "Build (Linux debug editor)",
            "type": "shell",
            "command": "scons -j32 platform=linuxbsd linker=mold optimize=none fast_unsafe=yes progress=no debug_symbols=yes builtin_embree=no builtin_enet=no builtin_freetype=no builtin_graphite=no builtin_harfbuzz=no builtin_libogg=no builtin_libpng=no builtin_libtheora=no builtin_libvorbis=no builtin_libwebp=no builtin_mbedtls=yes builtin_pcre2=no builtin_zlib=no builtin_zstd=no scu_build=all tests=no && notify-send --app-name 'Godot' 'Editor build successful' || notify-send --app-name 'Godot' --icon error 'Editor build FAILED'",
            "problemMatcher": [],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        },
        {

            "label": "Build (Windows editor)",
            "type": "shell",
            "command": "scons -j32 platform=windows optimize=none fast_unsafe=yes progress=no debug_symbols=yes",
            "problemMatcher": []
        },
    ]
}

Calinou avatar Feb 19 '25 02:02 Calinou