diff --git a/src/cascadia/TerminalSettingsModel/MTSMSettings.h b/src/cascadia/TerminalSettingsModel/MTSMSettings.h index cde90f910b1..0375d2802ff 100644 --- a/src/cascadia/TerminalSettingsModel/MTSMSettings.h +++ b/src/cascadia/TerminalSettingsModel/MTSMSettings.h @@ -93,8 +93,8 @@ Author(s): X(bool, RightClickContextMenu, "experimental.rightClickContextMenu", false) \ X(Windows::Foundation::Collections::IVector, BellSound, "bellSound", nullptr) \ X(bool, Elevate, "elevate", false) \ - X(bool, AutoMarkPrompts, "experimental.autoMarkPrompts", false) \ - X(bool, ShowMarks, "experimental.showMarksOnScrollbar", false) \ + X(bool, AutoMarkPrompts, "autoMarkPrompts", false) \ + X(bool, ShowMarks, "showMarksOnScrollbar", false) \ X(bool, RepositionCursorWithMouse, "experimental.repositionCursorWithMouse", false) \ X(bool, ReloadEnvironmentVariables, "compatibility.reloadEnvironmentVariables", true) diff --git a/src/cascadia/TerminalSettingsModel/Profile.cpp b/src/cascadia/TerminalSettingsModel/Profile.cpp index 0db012e7bc7..0f568b37e53 100644 --- a/src/cascadia/TerminalSettingsModel/Profile.cpp +++ b/src/cascadia/TerminalSettingsModel/Profile.cpp @@ -34,6 +34,9 @@ static constexpr std::string_view PaddingKey{ "padding" }; static constexpr std::string_view TabColorKey{ "tabColor" }; static constexpr std::string_view UnfocusedAppearanceKey{ "unfocusedAppearance" }; +static constexpr std::string_view LegacyAutoMarkPromptsKey{ "experimental.autoMarkPrompts" }; +static constexpr std::string_view LegacyShowMarksKey{ "experimental.showMarksOnScrollbar" }; + Profile::Profile(guid guid) noexcept : _Guid(guid) { @@ -182,6 +185,11 @@ void Profile::LayerJson(const Json::Value& json) JsonUtils::GetValueForKey(json, TabColorKey, _TabColor); + // Try to load some legacy keys, to migrate them. + // Done _before_ the MTSM_PROFILE_SETTINGS, which have the updated keys. + JsonUtils::GetValueForKey(json, LegacyShowMarksKey, _ShowMarks); + JsonUtils::GetValueForKey(json, LegacyAutoMarkPromptsKey, _AutoMarkPrompts); + #define PROFILE_SETTINGS_LAYER_JSON(type, name, jsonKey, ...) \ JsonUtils::GetValueForKey(json, jsonKey, _##name); diff --git a/src/features.xml b/src/features.xml index 8fbf160a8c7..c2af5ed009a 100644 --- a/src/features.xml +++ b/src/features.xml @@ -89,13 +89,10 @@ Feature_ScrollbarMarks Enables the experimental scrollbar marks feature. - AlwaysDisabled - - - Dev - Canary - Preview - + AlwaysEnabled + + WindowsInbox +