2020-09-11 02:57:02 +02:00
|
|
|
// Copyright (c) Microsoft Corporation
|
|
|
|
// Licensed under the MIT license.
|
|
|
|
|
2020-10-06 18:56:59 +02:00
|
|
|
namespace Microsoft.Terminal.Settings.Model
|
2020-09-11 02:57:02 +02:00
|
|
|
{
|
|
|
|
// SettingsLoadWarnings are scenarios where the settings contained
|
|
|
|
// information we knew was invalid, but we could recover from.
|
|
|
|
enum SettingsLoadWarnings
|
|
|
|
{
|
|
|
|
MissingDefaultProfile = 0,
|
|
|
|
DuplicateProfile = 1,
|
|
|
|
UnknownColorScheme = 2,
|
|
|
|
InvalidBackgroundImage = 3,
|
|
|
|
InvalidIcon = 4,
|
|
|
|
AtLeastOneKeybindingWarning = 5,
|
|
|
|
TooManyKeysForChord = 6,
|
|
|
|
MissingRequiredParameter = 7,
|
|
|
|
LegacyGlobalsProperty = 8,
|
|
|
|
FailedToParseCommandJson = 9,
|
|
|
|
WARNINGS_SIZE // IMPORTANT: This MUST be the last value in this enum. It's an unused placeholder.
|
|
|
|
};
|
|
|
|
|
|
|
|
// SettingsLoadWarnings are scenarios where the settings had invalid state
|
|
|
|
// that we could not recover from.
|
|
|
|
enum SettingsLoadErrors
|
|
|
|
{
|
|
|
|
NoProfiles = 0,
|
|
|
|
AllProfilesHidden = 1,
|
|
|
|
ERRORS_SIZE // IMPORTANT: This MUST be the last value in this enum. It's an unused placeholder.
|
|
|
|
};
|
|
|
|
}
|