[PR #3288] [MERGED] CascadiaSettings: Use map to find matching color scheme #25311

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/3288
Author: @anirudhrb
Created: 10/22/2019
Status: ✅ Merged
Merged: 10/31/2019
Merged by: @zadjii-msft

Base: master ← Head: find_color_scheme_using_map


📝 Commits (1)

  • c358339 CascadiaSettings: Use map to find matching color scheme

📊 Changes

3 files changed (+27 additions, -6 deletions)

View changed files

📝 src/cascadia/TerminalApp/CascadiaSettingsSerialization.cpp (+8 -6)
📝 src/cascadia/TerminalApp/ColorScheme.cpp (+17 -0)
📝 src/cascadia/TerminalApp/ColorScheme.h (+2 -0)

📄 Description

Summary of the Pull Request

The _FindMatchingColorScheme function currently iterates through all pairs in
the map to find the matching color scheme for a given JSON.

Improved this by using the name from the JSON to lookup the color scheme
in the map.

Closes #3200

Testing

Verified that UTs are passing (especially ColorSchemeTests)


🔄 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/3288 **Author:** [@anirudhrb](https://github.com/anirudhrb) **Created:** 10/22/2019 **Status:** ✅ Merged **Merged:** 10/31/2019 **Merged by:** [@zadjii-msft](https://github.com/zadjii-msft) **Base:** `master` ← **Head:** `find_color_scheme_using_map` --- ### 📝 Commits (1) - [`c358339`](https://github.com/microsoft/terminal/commit/c3583392b7e9269f16bdbf93921f54cc9ec741e3) CascadiaSettings: Use map to find matching color scheme ### 📊 Changes **3 files changed** (+27 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/CascadiaSettingsSerialization.cpp` (+8 -6) 📝 `src/cascadia/TerminalApp/ColorScheme.cpp` (+17 -0) 📝 `src/cascadia/TerminalApp/ColorScheme.h` (+2 -0) </details> ### 📄 Description ## Summary of the Pull Request The `_FindMatchingColorScheme` function currently iterates through all pairs in the map to find the matching color scheme for a given JSON. Improved this by using the name from the JSON to lookup the color scheme in the map. Closes #3200 ### Testing Verified that UTs are passing (especially `ColorSchemeTests`) --- <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:08:40 +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#25311