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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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!

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
2 participants