Skip to content

Added: cache UI also handles cmake variables set in the cmake presets. - #4884

Merged
MacGyver Codilla (mcodilla) merged 10 commits into
microsoft:mainfrom
BilboBeutlin89:main
Sep 1, 2026
Merged

MacGyver Codilla (mcodilla) merged 10 commits into
microsoft:mainfrom
BilboBeutlin89:main

Conversation

@BilboBeutlin89

Copy link
Copy Markdown
Contributor

This changes

The following changes are proposed:

  • Cache UI respects the presence of CMakePresets.json
  • Cache UI reloads after CMake configures after Save

The purpose of this change

Changes made in the Cache UI where overwritten by the CMake configuration that is triggered on save.

@hanniavalera

Copy link
Copy Markdown
Contributor

Hi tobias (@BilboBeutlin89), thank you so much for your contribution! Would you mind agreeing to the Contributor's Agreement so I can formally review this? Thanks!

@BilboBeutlin89

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree company="Jungheinrich System Solutions GmbH"

@mcodilla
MacGyver Codilla (mcodilla) enabled auto-merge (squash) May 14, 2026 06:02
Merges current main into the PR branch and restores the ConfigurationWebview
wiring that a prior 'Merge branch main' on this PR had silently reverted in
cmakeProject.ts, leaving cacheView.ts's new constructor signature orphaned
(the branch head did not compile and the feature was a no-op).

Restored in cmakeProject.ts:
- IOption import and the 7 private helpers that compute preset-backed cache
  variable metadata (type/value/raw-value lookup, preset-definition lookup,
  variable-origin resolution, per-option metadata, and the override writer
  updatePresetBackedCacheVariableOverrides).
- ConfigurationWebview construction now passes the dirty-aware save callback
  and the getPresetOptionMetadata provider, so the Source column is populated
  and edits to preset-defined variables are written as an override into
  CMakeUserPresets.json instead of being overwritten on reconfigure.

cacheView.ts and presetsController.ts (showInEditor) taken from the verified
recovery branch; reconciled with microsoft#5033's onReconfigured refresh listener.
Moved the CHANGELOG entry into the current 1.24 Bug Fixes section.

tsc, eslint, and webpack compile all pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e55cc9b5-dc8d-413d-a219-8c6418ec1d25
…oBeutlin89

The cache-editor preset support adds a capability (Source column and
preset-aware persistence), so it belongs under Improvements rather than
Bug Fixes, and the external contributor should be credited with a link to
the PR.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e55cc9b5-dc8d-413d-a219-8c6418ec1d25
@mcodilla
MacGyver Codilla (mcodilla) merged commit 356b457 into microsoft:main Sep 1, 2026
29 checks passed
Hannia Valera (hanniavalera) added a commit that referenced this pull request Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants