protected override void ChangeSeverity(NotificationOption2 severity) { var option = GetOption(); option.Notification = severity; _ = Updater.QueueUpdateAsync(_option, option); }
private static OptionsCollection QualifyMethodAccessWithNotification( NotificationOption2 notification ) => new OptionsCollection(LanguageNames.CSharp) { { CodeStyleOptions2.QualifyMethodAccess, true, notification } };
public void Add <T>( PerLanguageOption2 <CodeStyleOption2 <T> > option, T value, NotificationOption2 notification ) => _options.Add( new OptionKey2(option, _languageName), new CodeStyleOption2 <T>(value, notification) );
protected override void ChangeSeverity(NotificationOption2 severity) { ICodeStyleOption option = GetOption(); Location = Location with { LocationKind = LocationKind.EditorConfig }; Updater.QueueUpdate(_option, option.WithNotification(severity)); }
protected override void ChangeSeverity(NotificationOption2 severity) { ICodeStyleOption option = GetOption(); Updater.QueueUpdate(_option, option.WithNotification(severity)); }
public void Add <T>( Option2 <CodeStyleOption2 <T> > option, T value, NotificationOption2 notification ) => _options.Add(new OptionKey2(option), new CodeStyleOption2 <T>(value, notification));
protected abstract void ChangeSeverity(NotificationOption2 severity);
private IDictionary <OptionKey2, object> QualifyMethodAccessWithNotification(NotificationOption2 notification) => new Dictionary <OptionKey2, object>() { { new OptionKey2(CodeStyleOptions2.QualifyMethodAccess, LanguageNames.CSharp), new CodeStyleOption2 <bool>(true, notification) } };