diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/AppStateModel.cs b/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/AppStateModel.cs index 0f5252d028..dd0cfa817d 100644 --- a/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/AppStateModel.cs +++ b/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/AppStateModel.cs @@ -21,6 +21,8 @@ public partial class AppStateModel : ObservableObject /////////////////////////////////////////////////////////////////////////// // STATE HERE + // Make sure that you make the setters public (JsonSerializer.Deserialize will fail silently otherwise)! + // Make sure that any new types you add are added to JsonSerializationContext! public RecentCommandsManager RecentCommands { get; set; } = new(); public List RunHistory { get; set; } = [];