Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only set isUserPreset to true if it's defined in a user presets file #4081

Merged
merged 5 commits into from
Oct 10, 2024

Conversation

gcampbell-msft
Copy link
Collaborator

@gcampbell-msft gcampbell-msft commented Sep 18, 2024

Fixes #4059.

We were not showing presets as being available to select because we are determining that the preset is a user preset, when it really isn't. This is due to the fact that we were incorrectly setting isUserPreset, we should check which file the configure preset was defined in.

Test vsix here:
cmake-tools.zip

Copy link

@michaelbjerking michaelbjerking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested fix locally, and it fix the issue with CMakePresets.json "trying" to inherit from preset in CMakeUserPresets.json

@gcampbell-msft
Copy link
Collaborator Author

@moyo1997 Ping for review, thanks!

snehara99
snehara99 previously approved these changes Oct 9, 2024
snehara99
snehara99 previously approved these changes Oct 9, 2024
@gcampbell-msft gcampbell-msft enabled auto-merge (squash) October 10, 2024 13:32
@gcampbell-msft gcampbell-msft merged commit 1818a7e into main Oct 10, 2024
4 checks passed
@gcampbell-msft gcampbell-msft deleted the dev/gcampbell/FixIsUserPreset branch October 10, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CMakePresets.json can't inherit from preset in CMakeUserPresets.json
3 participants