[PR #2475] [MERGED] Just never save the settings #24944

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/2475
Author: @zadjii-msft
Created: 8/19/2019
Status: Merged
Merged: 8/20/2019
Merged by: @carlos-zamora

Base: masterHead: dev/migrie/f/just-never-save-settings


📝 Commits (1)

  • a92a3b7 Just never save the settings

📊 Changes

4 files changed (+7 additions, -30 deletions)

View changed files

📝 src/cascadia/TerminalApp/App.cpp (+4 -8)
📝 src/cascadia/TerminalApp/App.h (+1 -1)
📝 src/cascadia/TerminalApp/CascadiaSettings.h (+1 -1)
📝 src/cascadia/TerminalApp/CascadiaSettingsSerialization.cpp (+1 -20)

📄 Description

Summary of the Pull Request

This is more trouble than it's worth. We had code before to re-serialize settings when they changed, to try and gracefully migrate settings from old schemas to new ones. This is good in theory, but with #754 coming soon, this is going to become a minefield. In the future we'll just always be providing a base schema that's reasonable, so this won't matter so much. Keys that users have that aren't understood will just be ignored, and that's fine.

PR Checklist

  • Related to #754.
  • I've discussed this with core contributors already.

Validation Steps Performed

I tried changing "acrylicOpacity" to 0.9. When re-serialized, 0.9 becomes 0.8999grabage. This would have caused a re-format before, but no longer does :)


🔄 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/2475 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 8/19/2019 **Status:** ✅ Merged **Merged:** 8/20/2019 **Merged by:** [@carlos-zamora](https://github.com/carlos-zamora) **Base:** `master` ← **Head:** `dev/migrie/f/just-never-save-settings` --- ### 📝 Commits (1) - [`a92a3b7`](https://github.com/microsoft/terminal/commit/a92a3b7b3b8e4a39a138e82019b8c4845962ab7d) Just never save the settings ### 📊 Changes **4 files changed** (+7 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/App.cpp` (+4 -8) 📝 `src/cascadia/TerminalApp/App.h` (+1 -1) 📝 `src/cascadia/TerminalApp/CascadiaSettings.h` (+1 -1) 📝 `src/cascadia/TerminalApp/CascadiaSettingsSerialization.cpp` (+1 -20) </details> ### 📄 Description <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request This is more trouble than it's worth. We had code before to re-serialize settings when they changed, to try and gracefully migrate settings from old schemas to new ones. This is good in theory, but with #754 coming soon, this is going to become a minefield. In the future we'll just always be providing a base schema that's reasonable, so this won't matter so much. Keys that users have that aren't understood will just be ignored, and that's _fine_. ### Related Issues * #2389 * #754 <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Related to #754. * [x] I've discussed this with core contributors already. <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed I tried changing `"acrylicOpacity"` to `0.9`. When re-serialized, `0.9` becomes `0.8999grabage`. This would have caused a re-format before, but no longer does :) --- <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:06:18 +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#24944