[PR #9038] [MERGED] Serialize 'disabledProfileSources' #27392

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/9038
Author: @carlos-zamora
Created: 2/4/2021
Status: Merged
Merged: 2/5/2021
Merged by: @DHowett

Base: mainHead: dev/cazamor/tsm/serialize-dps


📝 Commits (1)

  • fcf236c Serialize 'disabledProfileSources'

📊 Changes

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

View changed files

📝 src/cascadia/LocalTests_SettingsModel/SerializationTests.cpp (+1 -0)
📝 src/cascadia/TerminalSettingsModel/CascadiaSettingsSerialization.cpp (+5 -1)

📄 Description

Summary of the Pull Request

"disabledProfileSources" is saved to CascadiaSettings not GlobalAppSettings (and, even then, it's only read when it's used, never saved). This PR specifically detects if it was defined in settings.json, and copies it over when the settings are serialized.

References

#6800 - Settings UI epic

Validation Steps Performed

  1. Added "disabledProfileSources" to settings.json, then serialized. --> "disabledProfileSources" is now maintained.
  2. Updated CascadiaSettings serialization test

Closes #9032


🔄 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/9038 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 2/4/2021 **Status:** ✅ Merged **Merged:** 2/5/2021 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `main` ← **Head:** `dev/cazamor/tsm/serialize-dps` --- ### 📝 Commits (1) - [`fcf236c`](https://github.com/microsoft/terminal/commit/fcf236c002b973133f3ab33281549b14774cfd67) Serialize 'disabledProfileSources' ### 📊 Changes **2 files changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/LocalTests_SettingsModel/SerializationTests.cpp` (+1 -0) 📝 `src/cascadia/TerminalSettingsModel/CascadiaSettingsSerialization.cpp` (+5 -1) </details> ### 📄 Description ## Summary of the Pull Request "disabledProfileSources" is saved to `CascadiaSettings` _not_ `GlobalAppSettings` (and, even then, it's only read when it's used, never saved). This PR specifically detects if it was defined in settings.json, and copies it over when the settings are serialized. ## References #6800 - Settings UI epic ## Validation Steps Performed 1. Added "disabledProfileSources" to settings.json, then serialized. --> "disabledProfileSources" is now maintained. 2. Updated `CascadiaSettings` serialization test Closes #9032 --- <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:42 +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#27392