-
Notifications
You must be signed in to change notification settings - Fork 4
Port Editor and ted settings to MEC #240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| using Terminal.Gui.Configuration; | ||
| using Terminal.Gui.Editor.Configuration; | ||
|
|
||
| namespace Ted; | ||
|
|
||
| internal static class TerminalGuiConfigurationBootstrap | ||
| { | ||
| internal static void Apply () | ||
| { | ||
| TuiConfigurationBuilder builder = new ("ted"); | ||
|
Check failure on line 10 in examples/ted/TerminalGuiConfigurationBootstrap.cs
|
||
| builder.ApplyToStaticFacades (); | ||
| EditorConfiguration.Apply (builder.Configuration); | ||
| EditorSettings.Apply (builder.Configuration); | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Saving settings now replaces the entire
EditorSettingsobject, so any unrecognized keys already present under that section (for example settings written by a newer ted version or another tool) are silently deleted on the next save. The previous save path updated known keys in place and preserved unrelated configuration, so this introduces avoidable config data loss during normal use.Useful? React with 👍 / 👎.