152 references to Suggestion
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
ConvertNamespace\ConvertNamespaceCommandHandler.cs (1)
45new(NamespaceDeclarationPreference.FileScoped, NotificationOption2.Suggestion);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (113)
CodeActions\IntroduceVariable\IntroduceVariableTests.cs (1)
30private readonly CodeStyleOption2<bool> onWithInfo = new CodeStyleOption2<bool>(true, NotificationOption2.Suggestion);
ConvertProgram\ConvertToProgramMainAnalyzerTests.cs (18)
184Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion } }, 209{ CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion }, 236Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion } }, 266Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion } }, 304Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion } }, 331Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion } }, 362Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion } }, 390Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion } }, 420Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion } }, 447Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion } }, 475Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion } }, 499Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion } }, 522Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion } }, 557Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion } }, 596Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion } }, 629Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion } }, 667Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion } }, 704Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion } },
ConvertProgram\ConvertToProgramMainRefactoringTests.cs (2)
120{ CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion }, 139{ CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion },
ConvertProgram\ConvertToTopLevelStatementsAnalyzerTests.cs (47)
264Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 287Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 315Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 343Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 368Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 390Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 413Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 436Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 463Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 486Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 510Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 534Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 559Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 585Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 611Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 637Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 663Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 688Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 713Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 740Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 767Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 792Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 817Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 842Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 865Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 892Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 919Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 946Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 973Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1000Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1027Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1054Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1081Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1110Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1134Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1163Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1200Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1237Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1278Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1305Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1346Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1385Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1427Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1467Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1497Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1526Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } }, 1571Options = { { CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion } },
ConvertProgram\ConvertToTopLevelStatementsRefactoringTests.cs (5)
88{ CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion }, 113{ CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion }, 139{ CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion }, 171{ CSharpCodeStyleOptions.PreferTopLevelStatements, false, NotificationOption2.Suggestion }, 196{ CSharpCodeStyleOptions.PreferTopLevelStatements, true, NotificationOption2.Suggestion },
ConvertToBlockScopedNamespaceAnalyzerTests.cs (1)
59{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.BlockScoped, NotificationOption2.Suggestion }
ConvertToFileScopedNamespaceAnalyzerTests.cs (1)
98{ CSharpCodeStyleOptions.NamespaceDeclarations, NamespaceDeclarationPreference.FileScoped, NotificationOption2.Suggestion }
ConvertTupleToStruct\ConvertTupleToStructTests.cs (3)
34{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Suggestion }, 35{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, true, NotificationOption2.Suggestion }, 36{ CSharpCodeStyleOptions.VarForBuiltInTypes, true, NotificationOption2.Suggestion },
Diagnostics\PreferFrameworkType\PreferFrameworkTypeTests.cs (6)
31private readonly CodeStyleOption2<bool> onWithInfo = new CodeStyleOption2<bool>(true, NotificationOption2.Suggestion); 32private readonly CodeStyleOption2<bool> offWithInfo = new CodeStyleOption2<bool>(false, NotificationOption2.Suggestion); 37{ CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, true, NotificationOption2.Suggestion }, 44{ CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, false, NotificationOption2.Suggestion }, 51{ CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, false, NotificationOption2.Suggestion }, 58{ CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, true, NotificationOption2.Suggestion },
EmbeddedStatementPlacementTests.cs (1)
86Options = { { CSharpCodeStyleOptions.AllowEmbeddedStatementsOnSameLine, true, NotificationOption2.Suggestion } }
Formatting\CSharpNewDocumentFormattingServiceTests.cs (2)
272{ CSharpCodeStyleOptions.PreferTopLevelStatements, new CodeStyleOption2<bool>(value: true, notification: NotificationOption2.Suggestion) } 294{ CSharpCodeStyleOptions.PreferTopLevelStatements, new CodeStyleOption2<bool>(value: false, notification: NotificationOption2.Suggestion) }
GenerateFromMembers\GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersTests.cs (6)
56{ CSharpCodeStyleOptions.VarElsewhere, true, NotificationOption2.Suggestion }, 57{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, true, NotificationOption2.Suggestion }, 58{ CSharpCodeStyleOptions.VarForBuiltInTypes, true, NotificationOption2.Suggestion }, 64{ CSharpCodeStyleOptions.VarElsewhere, false, NotificationOption2.Suggestion }, 65{ CSharpCodeStyleOptions.VarWhenTypeIsApparent, false, NotificationOption2.Suggestion }, 66{ CSharpCodeStyleOptions.VarForBuiltInTypes, false, NotificationOption2.Suggestion },
GenerateVariable\GenerateVariableTests.cs (1)
41private readonly CodeStyleOption2<bool> onWithInfo = new(true, NotificationOption2.Suggestion);
IntroduceVariable\IntroduceLocalForExpressionTests.cs (2)
21private static readonly CodeStyleOption2<bool> onWithInfo = new(true, NotificationOption2.Suggestion); 22private static readonly CodeStyleOption2<bool> offWithInfo = new(false, NotificationOption2.Suggestion);
QualifyMemberAccessTests.cs (1)
1557CodeStyleOptions2.QualifyPropertyAccess, NotificationOption2.Suggestion);
QualifyMemberAccessTests_FixAllTests.cs (1)
98options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Suggestion));
RemoveUnusedParametersTests.cs (3)
36new CodeStyleOption2<UnusedParametersPreference>(UnusedParametersPreference.NonPublicMethods, NotificationOption2.Suggestion)); 1471new CodeStyleOption2<UnusedParametersPreference>(default, NotificationOption2.Suggestion)); 1502new CodeStyleOption2<UnusedParametersPreference>((UnusedParametersPreference)2, NotificationOption2.Suggestion));
RemoveUnusedValueAssignmentTests.cs (2)
40new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.DiscardVariable, NotificationOption2.Suggestion)); 44new CodeStyleOption2<UnusedValuePreference>(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.Suggestion));
SimplifyThisOrMe\SimplifyThisOrMeTests.cs (2)
446{ CodeStyleOptions2.QualifyPropertyAccess, false, NotificationOption2.Suggestion }, 447{ CodeStyleOptions2.QualifyFieldAccess, true, NotificationOption2.Suggestion },
SimplifyTypeNames\SimplifyTypeNamesTests.cs (1)
7140private readonly CodeStyleOption2<bool> onWithInfo = new CodeStyleOption2<bool>(true, NotificationOption2.Suggestion);
UseExplicitTypeTests.cs (2)
32private readonly CodeStyleOption2<bool> onWithInfo = new(true, NotificationOption2.Suggestion); 33private readonly CodeStyleOption2<bool> offWithInfo = new(false, NotificationOption2.Suggestion);
UseExpressionBodyForMethodsAnalyzerTests.cs (1)
80Assert.Equal(NotificationOption2.Suggestion, option.Notification);
UseImplicitTypeTests.cs (2)
33private static readonly CodeStyleOption2<bool> onWithInfo = new(true, NotificationOption2.Suggestion); 34private static readonly CodeStyleOption2<bool> offWithInfo = new(false, NotificationOption2.Suggestion);
UseVarTestExtensions.cs (2)
23private static readonly CodeStyleOption2<bool> onWithInfo = new CodeStyleOption2<bool>(true, NotificationOption2.Suggestion); 24private static readonly CodeStyleOption2<bool> offWithInfo = new CodeStyleOption2<bool>(false, NotificationOption2.Suggestion);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CSharpCodeStyleOptions.cs (2)
95new(ExpressionBodyPreference.Never, NotificationOption2.Suggestion); 101new(ExpressionBodyPreference.WhenPossible, NotificationOption2.Suggestion);
CSharpIdeCodeStyleOptions.cs (1)
35new(UnusedValuePreference.DiscardVariable, NotificationOption2.Suggestion);
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Data\CodeStyleSetting.cs (1)
40DiagnosticSeverity.Info => NotificationOption2.Suggestion,
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (2)
Diagnostics\ParenthesesOptionsProvider.cs (2)
27new CodeStyleOption2<ParenthesesPreference>(ParenthesesPreference.AlwaysForClarity, NotificationOption2.Suggestion); 30new CodeStyleOption2<ParenthesesPreference>(ParenthesesPreference.NeverIfUnnecessary, NotificationOption2.Suggestion);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Simplification\TypeNameSimplifierTest.vb (2)
3167Await TestAsync(input, expected, QualifyPropertyAccessOptionWithNotification(LanguageNames.CSharp, NotificationOption2.Suggestion)) 5702Await TestAsync(input, expected, QualifyPropertyAccessOptionWithNotification(LanguageNames.VisualBasic, NotificationOption2.Suggestion))
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (12)
Diagnostics\PreferFrameworkType\PreferFrameworkTypeTests.vb (6)
19Private ReadOnly onWithInfo As New CodeStyleOption2(Of Boolean)(True, NotificationOption2.Suggestion) 20Private ReadOnly offWithInfo As New CodeStyleOption2(Of Boolean)(False, NotificationOption2.Suggestion) 30{CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, True, NotificationOption2.Suggestion}, 39{CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, False, NotificationOption2.Suggestion}, 48{CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, False, NotificationOption2.Suggestion}, 57{CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, False, NotificationOption2.Suggestion},
QualifyMemberAccessTests.vb (1)
555CodeStyleOptions2.QualifyPropertyAccess, NotificationOption2.Suggestion)
QualifyMemberAccessTests_FixAllTests.vb (1)
83options:=[Option](CodeStyleOptions2.QualifyPropertyAccess, True, NotificationOption2.Suggestion))
RemoveUnusedValueAssignmentTests.vb (2)
24New CodeStyleOption2(Of UnusedValuePreference)(UnusedValuePreference.DiscardVariable, NotificationOption2.Suggestion)) 31New CodeStyleOption2(Of UnusedValuePreference)(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.Suggestion))
SimplifyThisOrMe\SimplifyThisOrMeTests.vb (2)
343{CodeStyleOptions2.QualifyPropertyAccess, False, NotificationOption2.Suggestion}, 344{CodeStyleOptions2.QualifyFieldAccess, True, NotificationOption2.Suggestion}
Microsoft.CodeAnalysis.Workspaces (11)
CodeStyle\NotificationOption.cs (2)
51/// <inheritdoc cref="NotificationOption2.Suggestion"/> 52public static readonly NotificationOption Suggestion = new(NotificationOption2.Suggestion);
CodeStyleHelpers.cs (1)
107case EditorConfigSeverityStrings.Suggestion: notification = NotificationOption2.Suggestion; return true;
CodeStyleOption2`1.cs (3)
46public static readonly CodeStyleOption2<bool> TrueWithSuggestionEnforcement = new(value: true, notification: NotificationOption2.Suggestion); 47public static readonly CodeStyleOption2<bool> FalseWithSuggestionEnforcement = new(value: false, notification: NotificationOption2.Suggestion); 209DiagnosticSeverity.Info => NotificationOption2.Suggestion,
IdeAnalyzerOptions.cs (1)
23new(value: true, notification: NotificationOption2.Suggestion);
IdeCodeStyleOptions.cs (2)
14new(UnusedParametersPreference.AllMethods, NotificationOption2.Suggestion); 26new(ForEachExplicitCastInSourcePreference.WhenStronglyTyped, NotificationOption2.Suggestion);
ReportDiagnosticExtensions.cs (1)
95return NotificationOption2.Suggestion;
VisualBasicIdeCodeStyleOptions.cs (1)
19new(UnusedValuePreference.UnusedLocalVariable, NotificationOption2.Suggestion);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Options\OptionKeyTests.cs (1)
174Assert.Equal(new CodeStyleOption2<bool>(true, NotificationOption2.Suggestion), result);
Microsoft.VisualStudio.IntegrationTest.Utilities (1)
InProcess\VisualStudioWorkspace_InProc.cs (1)
50new CodeStyleOption2<NamespaceDeclarationPreference>(value ? NamespaceDeclarationPreference.FileScoped : NamespaceDeclarationPreference.BlockScoped, NotificationOption2.Suggestion)));
Microsoft.VisualStudio.LanguageServices.Implementation (3)
Options\Style\AbstractCodeStyleOptionViewModel.cs (1)
71new NotificationOptionViewModel(NotificationOption2.Suggestion, KnownMonikers.StatusInformation),
Options\Style\NamingPreferences\NamingStyleOptionPageControl.xaml.cs (1)
45new NotificationOptionViewModel(NotificationOption2.Suggestion, KnownMonikers.StatusInformation),
Options\Style\NamingPreferences\NamingStyleOptionPageViewModel.cs (1)
28new NotificationOptionViewModel(NotificationOption2.Suggestion, KnownMonikers.StatusInformation),
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (1)
InProcess\WorkspaceInProcess.cs (1)
82new CodeStyleOption2<NamespaceDeclarationPreference>(value ? NamespaceDeclarationPreference.FileScoped : NamespaceDeclarationPreference.BlockScoped, NotificationOption2.Suggestion));
Roslyn.VisualStudio.Next.UnitTests (1)
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (1)
76VarWhenTypeIsApparent = new CodeStyleOption2<bool>(false, NotificationOption2.Suggestion)