Ejemplo n.º 1
0
            protected override void ChangeSeverity(NotificationOption2 severity)
            {
                var option = GetOption();

                option.Notification = severity;
                _ = Updater.QueueUpdateAsync(_option, option);
            }
Ejemplo n.º 2
0
 private static OptionsCollection QualifyMethodAccessWithNotification(
     NotificationOption2 notification
     ) =>
 new OptionsCollection(LanguageNames.CSharp)
 {
     { CodeStyleOptions2.QualifyMethodAccess, true, notification }
 };
Ejemplo n.º 3
0
 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));
            }
Ejemplo n.º 6
0
 public void Add <T>(
     Option2 <CodeStyleOption2 <T> > option,
     T value,
     NotificationOption2 notification
     ) => _options.Add(new OptionKey2(option), new CodeStyleOption2 <T>(value, notification));
Ejemplo n.º 7
0
 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) }
 };