[PR #9103] Bugfix: update color scheme references properly #27427

Open
opened 2026-01-31 09:21:55 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/9103

State: closed
Merged: Yes


CascadiaSettings::UpdateColorSchemeReferences had two bugs in it:

  1. we would never check/update the base layer
  2. we would explicitly set the color scheme on a profile referencing the
    old name

This PR fixes both of those issues by checking/updating the base layer,
and ensuring that we check if a profile has an explicit reference before
updating it.

Since the affected code is in TSM, I also created an automated local
test.

Validation Steps Performed

Bug repro steps.
Specifically tested DHowett's scenario too.
Test added.

Closes #9094

**Original Pull Request:** https://github.com/microsoft/terminal/pull/9103 **State:** closed **Merged:** Yes --- `CascadiaSettings::UpdateColorSchemeReferences` had two bugs in it: 1. we would never check/update the base layer 2. we would explicitly set the color scheme on a profile referencing the old name This PR fixes both of those issues by checking/updating the base layer, and ensuring that we check if a profile has an explicit reference before updating it. Since the affected code is in TSM, I also created an automated local test. ## Validation Steps Performed Bug repro steps. Specifically tested [DHowett's scenario] too. Test added. Closes #9094 [DHowett's scenario]: https://github.com/microsoft/terminal/issues/9094#issuecomment-776412781
claunia added the pull-request label 2026-01-31 09:21:55 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27427