5 instantiations of NotificationOption
Microsoft.CodeAnalysis.Workspaces (5)
CodeStyle\NotificationOption.cs (5)
46public static readonly NotificationOption None = new(NotificationOption2.None); 49public static readonly NotificationOption Silent = new(NotificationOption2.Silent); 52public static readonly NotificationOption Suggestion = new(NotificationOption2.Suggestion); 55public static readonly NotificationOption Warning = new(NotificationOption2.Warning); 58public static readonly NotificationOption Error = new(NotificationOption2.Error);
32 references to NotificationOption
Microsoft.CodeAnalysis.Workspaces (17)
CodeStyle\CodeStyleOption.cs (5)
19public static CodeStyleOption<T> Default => new(default, NotificationOption.Silent); 24public CodeStyleOption(T value, NotificationOption notification) 40ICodeStyleOption ICodeStyleOption.WithNotification(NotificationOption2 notification) => new CodeStyleOption<T>(Value, (NotificationOption)notification); 44public NotificationOption Notification 46get => (NotificationOption)_codeStyleOptionImpl.Notification;
CodeStyle\CodeStyleOption2_operators.cs (1)
21return new CodeStyleOption<T>(option.Value, (NotificationOption)option.Notification);
CodeStyle\NotificationOption.cs (5)
46public static readonly NotificationOption None = new(NotificationOption2.None); 49public static readonly NotificationOption Silent = new(NotificationOption2.Silent); 52public static readonly NotificationOption Suggestion = new(NotificationOption2.Suggestion); 55public static readonly NotificationOption Warning = new(NotificationOption2.Warning); 58public static readonly NotificationOption Error = new(NotificationOption2.Error);
CodeStyle\NotificationOption2_operators.cs (6)
11public static explicit operator NotificationOption(NotificationOption2 notificationOption) 14ReportDiagnostic.Suppress => NotificationOption.None, 15ReportDiagnostic.Hidden => NotificationOption.Silent, 16ReportDiagnostic.Info => NotificationOption.Suggestion, 17ReportDiagnostic.Warn => NotificationOption.Warning, 18ReportDiagnostic.Error => NotificationOption.Error,
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (6)
Options\OptionsTestHelpers.cs (6)
88(CodeStyleOptions.QualifyFieldAccess, new CodeStyleOption<bool>(true, NotificationOption.Suggestion)), 89(CodeStyleOptions.QualifyPropertyAccess, new CodeStyleOption<bool>(true, NotificationOption.Suggestion)), 90(CodeStyleOptions.QualifyMethodAccess, new CodeStyleOption<bool>(true, NotificationOption.Suggestion)), 91(CodeStyleOptions.QualifyEventAccess, new CodeStyleOption<bool>(true, NotificationOption.Suggestion)), 92(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInDeclaration, new CodeStyleOption<bool>(false, NotificationOption.Suggestion)), 93(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, new CodeStyleOption<bool>(false, NotificationOption.Suggestion)));
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
Options\DocumentOptionSetTests.cs (7)
33Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Warning), set.GetOption(CodeStyleOptions.QualifyEventAccess, LanguageNames.CSharp)); 36Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Warning), set.GetOption(CodeStyleOptions.QualifyEventAccess, LanguageNames.CSharp)); 39Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Error), set.GetOption(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.CSharp)); 42Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Error), set.GetOption(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.CSharp)); 64Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Error), set.GetOption(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.CSharp)); 67Assert.Equal(new CodeStyleOption<bool>(true, NotificationOption.Error), set.GetOption(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, LanguageNames.CSharp)); 76var newValue = new CodeStyleOption<bool>(true, NotificationOption.Error);
Microsoft.VisualStudio.LanguageServices.Implementation (1)
Options\NotificationOptionViewModel.cs (1)
13/// Represents a view model for <see cref="NotificationOption"/>
Roslyn.VisualStudio.Next.UnitTests (1)
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (1)
184workspace.GlobalOptions.SetGlobalOption(CSharpCodeStyleOptions.VarWhenTypeIsApparent, new CodeStyleOption<bool>(false, NotificationOption.Suggestion));