Skip to content

Calling of build task doesn't work properly #3622

@Felix-devel

Description

@Felix-devel

Brief Issue Summary

I want to use a task to run the cmake build since I want to use some specific problem matcher. If I start the task over Menu->Terminal->Run Build Task every thing works fine. But the buttons of the cmake extension don't call my speciffic build task but calls the default (template) build task.

After press the build button here:
image
or here:
image
VSCode asks for the build task but only suggest the CMake template build task.
image

Even if I name the task "detail": CMake template build task, it doesn't use the one written in tasks.json.
Also if i modify the template task which is added to the tasks.json if there is no. When I press the build Button it doen't use my modified one.

If enabled the "Build Task" option for "User, Workspace and the Project"
image

There is a similar if I use the clean button, here it even doen't ask for the clean task, but for the build task.
image
image

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

tasks.json

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Completed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions