Settings file being reformatted when settings are changed by the program #3385

Open
opened 2026-01-30 23:20:06 +00:00 by claunia · 0 comments
Owner

Originally created by @giggio on GitHub (Aug 12, 2019).

Originally assigned to: @zadjii-msft on GitHub.

Environment

Windows build number: Microsoft Windows NT 10.0.18362.0                                                                                                                                                                                     

Windows Terminal version: latest from the master branch

Any other software?
N/A

Steps to reproduce

With the terminal closed, do anything that trigger a json settings file rewrite, for example, add any setting to the settings json file that is not on the schema (or is invalid), for example:

{
    "Foo": 1,
    "globals" :
    {

Then, open the terminal

Expected behavior

Terminal warns me somehow, or comments out the invalid setting. But does not, ever, reformat the file.

Actual behavior

The settings file is rewritten and reformatted, and, worse of all, an annoying trailing space is added to the end of every json key. See image bellow:

CodeSettingsFile

Originally created by @giggio on GitHub (Aug 12, 2019). Originally assigned to: @zadjii-msft on GitHub. # Environment ```none Windows build number: Microsoft Windows NT 10.0.18362.0 Windows Terminal version: latest from the master branch Any other software? N/A ``` # Steps to reproduce With the terminal closed, do anything that trigger a json settings file rewrite, for example, add any setting to the settings json file that is not on the schema (or is invalid), for example: ````json { "Foo": 1, "globals" : { ```` Then, open the terminal # Expected behavior Terminal warns me somehow, or comments out the invalid setting. But does not, ever, reformat the file. # Actual behavior The settings file is rewritten and reformatted, and, worse of all, an annoying trailing space is added to the end of every json key. See image bellow: ![CodeSettingsFile](https://user-images.githubusercontent.com/334958/62889785-6dc4f580-bd18-11e9-8b9a-dceb89684bfe.gif)
claunia added the Resolution-Fix-CommittedArea-SettingsIssue-BugProduct-Terminal labels 2026-01-30 23:20:06 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3385