microsoft / microsoft/vscode-cmake-tools

Add current version information when validation of the CMakePresets fails

Open
#3,605 0 comments 0 reactions 0 assignees View on GitHub
enhancement Feature: presets
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.