5 instantiations of NotificationOption
Microsoft.CodeAnalysis.Workspaces (5)
CodeStyle\NotificationOption.cs (5)
45public static readonly NotificationOption None = new(NotificationOption2.None); 48public static readonly NotificationOption Silent = new(NotificationOption2.Silent); 51public static readonly NotificationOption Suggestion = new(NotificationOption2.Suggestion); 54public static readonly NotificationOption Warning = new(NotificationOption2.Warning); 57public static readonly NotificationOption Error = new(NotificationOption2.Error);
29 references to NotificationOption
Microsoft.CodeAnalysis.Workspaces (17)
CodeStyle\CodeStyleOption.cs (5)
28public static CodeStyleOption<T> Default => new(default!, NotificationOption.Silent); 33public CodeStyleOption(T value, NotificationOption notification) 49ICodeStyleOption ICodeStyleOption.WithNotification(NotificationOption2 notification) => new CodeStyleOption<T>(Value, (NotificationOption)notification); 51public NotificationOption Notification 53get => (NotificationOption)UnderlyingOption.Notification;
CodeStyle\CodeStyleOption2_operators.cs (1)
21return new CodeStyleOption<T>(option.Value, (NotificationOption)option.Notification);
CodeStyle\NotificationOption.cs (5)
45public static readonly NotificationOption None = new(NotificationOption2.None); 48public static readonly NotificationOption Silent = new(NotificationOption2.Silent); 51public static readonly NotificationOption Suggestion = new(NotificationOption2.Suggestion); 54public static readonly NotificationOption Warning = new(NotificationOption2.Warning); 57public 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)
85(CodeStyleOptions.QualifyFieldAccess, new CodeStyleOption<bool>(true, NotificationOption.Suggestion)), 86(CodeStyleOptions.QualifyPropertyAccess, new CodeStyleOption<bool>(true, NotificationOption.Suggestion)), 87(CodeStyleOptions.QualifyMethodAccess, new CodeStyleOption<bool>(true, NotificationOption.Suggestion)), 88(CodeStyleOptions.QualifyEventAccess, new CodeStyleOption<bool>(true, NotificationOption.Suggestion)), 89(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInDeclaration, new CodeStyleOption<bool>(false, NotificationOption.Suggestion)), 90(CodeStyleOptions.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, new CodeStyleOption<bool>(false, NotificationOption.Suggestion)));
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
Options\DocumentOptionSetTests.cs (5)
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);
Roslyn.VisualStudio.Next.UnitTests (1)
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (1)
155workspace.GlobalOptions.SetGlobalOption(CSharpCodeStyleOptions.VarWhenTypeIsApparent, new CodeStyleOption<bool>(false, NotificationOption.Suggestion));