Settings UI removes comments in settings.json #12585

Open
opened 2026-01-31 03:19:34 +00:00 by claunia · 0 comments
Owner

Originally created by @DennisGaida on GitHub (Feb 15, 2021).

Environment

Windows build number: Microsoft Windows NT 10.0.19042.0
Windows Terminal version: 1.6.10412.0

Steps to reproduce

Open the settings UI settingsUI, make some changes, save

Expected behavior

I would assume that the settings.json is just changed with new values. Whatever is changed is written.

Actual behavior

It seems that the settings are completely rewritten by the settingsUI - meaning my order of things in the json is completely gone and more importantly some comments are gone. I'm playing around with different fonts for example and the section looked like this:

"defaults": 
        {
            //"fontFace": "Cascadia Code",
            "fontFace": "CaskaydiaCove NF"
        },

After saving with the settings UI, the commented out fontFace is gone. The same behavior I observed for colorScheme within the list of profiles. Other comments are still there (e.g. in the keybindings section)

Originally created by @DennisGaida on GitHub (Feb 15, 2021). # Environment ```none Windows build number: Microsoft Windows NT 10.0.19042.0 Windows Terminal version: 1.6.10412.0 ``` # Steps to reproduce Open the settings UI `settingsUI`, make some changes, *save* # Expected behavior I would assume that the `settings.json` is just changed with new values. Whatever is changed is written. # Actual behavior It seems that the settings are completely rewritten by the `settingsUI` - meaning my order of things in the json is completely gone and more importantly *some* comments are gone. I'm playing around with different fonts for example and the section looked like this: ``` "defaults": { //"fontFace": "Cascadia Code", "fontFace": "CaskaydiaCove NF" }, ``` After saving with the settings UI, the commented out `fontFace` is gone. The same behavior I observed for `colorScheme` within the list of profiles. Other comments are still there (e.g. in the `keybindings` section)
claunia added the Resolution-Duplicate label 2026-01-31 03:19:34 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12585