Terminal: Settings file being reformatted when settings are changed by the program

Created on 12 Aug 2019  路  5Comments  路  Source: microsoft/terminal

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:

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

Area-Settings Issue-Bug Product-Terminal Resolution-Fix-Committed

Most helpful comment

The Actual vs. Expected behavior sections are swapped, aren't they?

All 5 comments

Getting rid of this behavior is a critical (and already called out!) part of the work specified in #1258. :smile:

The Actual vs. Expected behavior sections are swapped, aren't they?

Yes, fixed, thanks.

@zadjii-msft got rid of settings reserialization recently. :smile:

Awesome, I just confirmed it with my latest private build. Tks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TayYuanGeng picture TayYuanGeng  路  3Comments

warpdesign picture warpdesign  路  3Comments

alabuzhev picture alabuzhev  路  3Comments

ghost picture ghost  路  3Comments

DieselMeister picture DieselMeister  路  3Comments