microsoft / microsoft/vscode-cmake-tools

Ability to hide unwanted CMakePresets

Open
#2,606 2 comments 2 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

Add the ability to hide the unwanted presets.

I think this could be implemented at a CMake level for the following scenario:

If a preset is defined in CMakePresets.json but inherited and extended in CMakeUserPresets.json I'd like to be able to make the parent preset to disappear from the IDE. Maybe instead of adding such in option to settings.json we can have an extension to CMake to extend and set additional properties in CMakeUserPresets.json to presets defined in CMakePresets.json. Or there can be a separate field "HidePresets", where the unwanted presets could be listed.

Is there anything like that currently? What would be the best approach?

Contributor guide

Open the contributing guide

Research direction

The issue names CMakePresets.json and CMakeUserPresets.json; start by tracing how CMake Tools discovers and presents inherited presets. Compare whether hiding belongs in CMake preset semantics or the extension, with done defined as a documented, tested way to hide parent presets without removing inheritance.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.