[PR #10877] [CLOSED] Don't create settings.json when it was removed #28274

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10877
Author: @lhecker
Created: 8/5/2021
Status: Closed

Base: mainHead: dev/lhecker/ignore-settings-remove


📝 Commits (1)

  • 0d946fe Don't create settings.json when it was removed

📊 Changes

1 file changed (+14 additions, -2 deletions)

View changed files

📝 src/cascadia/TerminalApp/AppLogic.cpp (+14 -2)

📄 Description

⚠️ crazy 4am idea ⚠️
👉 Open for discussion

Stop recreating settings.json if it's removed.
This improves UX, because users don't accidentally loose their settings anymore
and removes a source of crashes in the SUI. Our WinUI NavigationView crashes
if its MenuItems array is modified while a transition is ongoing.
The crash in particular occurs reliably if the settings are deleted.

PR Checklist

  • I work here
  • Tests added/passed

Validation Steps Performed

  • Removing settings.json doesn't cause it to be created ✔️

🔄 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/10877 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 8/5/2021 **Status:** ❌ Closed **Base:** `main` ← **Head:** `dev/lhecker/ignore-settings-remove` --- ### 📝 Commits (1) - [`0d946fe`](https://github.com/microsoft/terminal/commit/0d946fec43cf6930950ab0f8b69835ec8bb2f30a) Don't create settings.json when it was removed ### 📊 Changes **1 file changed** (+14 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/AppLogic.cpp` (+14 -2) </details> ### 📄 Description ⚠️ crazy 4am idea ⚠️ 👉 Open for discussion Stop recreating settings.json if it's removed. This improves UX, because users don't accidentally loose their settings anymore and removes a source of crashes in the SUI. Our WinUI NavigationView crashes if its MenuItems array is modified while a transition is ongoing. The crash in particular occurs reliably if the settings are deleted. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] I work here * [ ] Tests added/passed ## Validation Steps Performed * Removing settings.json doesn't cause it to be created ✔️ --- <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:27:26 +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#28274