public IDictionary <Command, ICollection <KeyBinding> > GetKeyBindings() { var keyBindings = new Dictionary <Command, ICollection <KeyBinding> >(); foreach (var value in Enum.GetValues(typeof(Command))) { var command = (Command)value; keyBindings.Add(command, _keyBindings.ReadValueFromJson <Collection <KeyBinding> >(command.ToString(), null) ?? _defaultValueProvider.GetDefaultKeyBindings(command)); } return(keyBindings); }
public TerminalTheme GetTheme(Guid id) { return(_themes.ReadValueFromJson(id.ToString(), default(TerminalTheme))); }
public ShellProfile GetDefaultShellProfile() { var id = GetDefaultShellProfileId(); return(_shellProfiles.ReadValueFromJson(id.ToString(), default(ShellProfile))); }
public TerminalOptions GetTerminalOptions() { return(_roamingSettings.ReadValueFromJson(nameof(TerminalOptions), _defaultValueProvider.GetDefaultTerminalOptions())); }
public ShellConfiguration GetShellConfiguration() { return(_localSettings.ReadValueFromJson(nameof(ShellConfiguration), _defaultValueProvider.GetDefaultShellConfiguration())); }