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

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/9103
Author: @carlos-zamora
Created: 2/10/2021
Status: Merged
Merged: 2/10/2021
Merged by: @undefined

Base: mainHead: dev/cazamor/sui/bugfix-scheme-refs


📝 Commits (2)

  • f267946 Bugfix: update color scheme references properly
  • b59d54b pr comments

📊 Changes

2 files changed (+87 additions, -1 deletions)

View changed files

📝 src/cascadia/LocalTests_SettingsModel/ColorSchemeTests.cpp (+78 -0)
📝 src/cascadia/TerminalSettingsModel/CascadiaSettings.cpp (+9 -1)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/9103 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 2/10/2021 **Status:** ✅ Merged **Merged:** 2/10/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/cazamor/sui/bugfix-scheme-refs` --- ### 📝 Commits (2) - [`f267946`](https://github.com/microsoft/terminal/commit/f2679469cb0cda81d4911a53eccf639254b8dcfd) Bugfix: update color scheme references properly - [`b59d54b`](https://github.com/microsoft/terminal/commit/b59d54b43ef1d23cb151b03b8e26b81e33d03906) pr comments ### 📊 Changes **2 files changed** (+87 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/LocalTests_SettingsModel/ColorSchemeTests.cpp` (+78 -0) 📝 `src/cascadia/TerminalSettingsModel/CascadiaSettings.cpp` (+9 -1) </details> ### 📄 Description `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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:21:53 +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#27422