microsoft / microsoft/vscode-cmake-tools
Respect configuration value cmake.parallelJobs in defaultBuildPreset
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 546
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 32
Description
### Brief Issue Summary
In the extension settings there is a value Parallel Jobs to specify the value for `--parallel`.
It also has the nice feature for auto detection when 0 is specified.
When CMake configure presets are used without CMake build presets, a very minimal defaultBuildPreset (name from extension code) is used, which uses only 1 parallel job, regardless of the extension settings.
I think it would make more sense to respect the configuration value cmake.parallelJobs in this case, especially with the auto detection with value 0. Otherwise it seems (afaik) like I have to create basically an empty build preset for each configuration preset, just to specify the number of parallel jobs.
### CMake Tools Diagnostics
_No response_
### Debug Log
_No response_
### Additional Information
_No response_
Contributor guide
Research direction
Start by locating the extension code that creates the minimal defaultBuildPreset when configure presets lack build presets, then trace how cmake.parallelJobs is read for normal builds. The change is done when this fallback respects the configured parallel-job value, including automatic detection when it is 0.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, typescript
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100