public void SetPrettyListing(string languageName, bool value) => InvokeOnUIThread(cancellationToken => { _globalOptions.SetGlobalOption(new OptionKey(FeatureOnOffOptions.PrettyListing, languageName), value); });
static void ResetPerLanguageOption <T>(IGlobalOptionService globalOptions, PerLanguageOption <T> option) { globalOptions.SetGlobalOption(new OptionKey(option, LanguageNames.CSharp), option.DefaultValue); globalOptions.SetGlobalOption(new OptionKey(option, LanguageNames.VisualBasic), option.DefaultValue); }
static void ResetOption2 <T>(IGlobalOptionService globalOptions, Option2 <T> option) { globalOptions.SetGlobalOption(new OptionKey(option, language: null), option.DefaultValue); }