microsoft / microsoft/vscode-cmake-tools
Add current version information when validation of the CMakePresets fails
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 546
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 32
Description
### Brief Issue Summary
When CMakePresets validation fails, we output that there is an issue, along with the unsupported fields.
The code is here: https://github.com/microsoft/vscode-cmake-tools/blob/main/src/presetsController.ts#L1593.
I think it'd be nice to make this information more clear, and let users know that these fields aren't supported for the version that they are currently trying to use, in addition to our highest supported version.
### CMake Tools Diagnostics
_No response_
### Debug Log
_No response_
### Additional Information
_No response_
Contributor guide
Research direction
The validation diagnostic is in src/presetsController.ts around line 1593. Read that path to identify how the current and highest supported CMakePresets versions are available, then update the failure information so users can distinguish fields unsupported by their current version; verify the resulting diagnostic in the validation flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, typescript
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100