microsoft / microsoft/vscode-cmake-tools

Add support for "args" in task provider

Open
#2,554 6 comments 0 reactions 0 assignees View on GitHub
enhancement Feature: tasks
Dominant language
TypeScript
Stars
1.7k
Forks
546
Avg merge
2d 16h
Merged PRs (30d)
32

Description

### Brief Issue Summary

I would like to have default build command to do `cmake --build --preset presetName` - to build currently selected user preset. How can I know its name? I cannot find command to do `${command:cmake.getPresetName}` or something similar.

### CMake Tools Diagnostics

_No response_

### Debug Log

_No response_

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating the task provider and the existing CMake preset handling in this repository. Reproduce the requested default build command, then determine how the currently selected preset could be exposed to task arguments; the work is done when that preset name can be used in a command such as `cmake --build --preset presetName`.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, typescript
Domain
build-system, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.