115 instantiations of PerLanguageOption2
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
BlockCommentEditing\BlockCommentEditingOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> AutoInsertBlockCommentStartString = new("csharp_insert_block_comment_start_string", defaultValue: true);
Microsoft.CodeAnalysis.EditorFeatures (27)
AddImportOnPaste\AddImportOnPasteOptionsStorage.cs (1)
17public static readonly PerLanguageOption2<bool> AddImportsOnPaste = new("dotnet_add_imports_on_paste", defaultValue: true);
ExtractMethod\ExtractMethodPresentationOptionsStorage.cs (1)
13public static readonly PerLanguageOption2<bool> AllowBestEffort = new("dotnet_allow_best_effort_when_extracting_method", defaultValue: true);
Formatting\FormattingOptionsStorage.cs (1)
12new("dotnet_format_on_paste", defaultValue: true);
InheritanceMargin\InheritanceMarginOptionsStorage.cs (2)
11public static readonly PerLanguageOption2<bool?> ShowInheritanceMargin = new("dotnet_show_inheritance_margin", defaultValue: true); 15public static readonly PerLanguageOption2<bool> InheritanceMarginIncludeGlobalImports = new("dotnet_show_global_imports_in_inheritance_margin", defaultValue: true);
InlineDiagnostics\InlineDiagnosticsOptionsStorage.cs (2)
12new("dotnet_enable_inline_diagnostics", 16new("dotnet_inline_diagnostics_location",
InlineHints\InlineHintsViewOptionsStorage.cs (1)
14public static readonly PerLanguageOption2<bool> ColorHints = new(
KeywordHighlighting\KeywordHighlightingOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> KeywordHighlighting = new("dotnet_highlight_keywords", defaultValue: true);
LineSeparators\LineSeparatorsOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> LineSeparator = new("dotnet_display_line_separators", defaultValue: false);
Options\CompletionViewOptionsStorage.cs (4)
12new("dotnet_highlight_matching_portions_of_completion_list_items", defaultValue: true); 15new("dotnet_show_completion_item_filters", defaultValue: true); 19new("dotnet_enable_argument_completion_snippets", defaultValue: null); 22new("block_for_completion_items", defaultValue: true);
Options\LegacyGlobalOptionsWorkspaceService.cs (3)
26private static readonly PerLanguageOption2<bool> s_generateOperators = new( 30private static readonly PerLanguageOption2<bool> s_implementIEquatable = new( 34internal static readonly PerLanguageOption2<bool> s_addNullChecks = new(
Options\NavigationBarViewOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> ShowNavigationBar = new(
Options\SignatureHelpViewOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> ShowSignatureHelp = new(
ReferenceHighlighting\ReferenceHighlightingOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> ReferenceHighlighting = new("dotnet_highlight_references", defaultValue: true);
RenameTracking\RenameTrackingOptionsStorage.cs (1)
13public static readonly PerLanguageOption2<bool> RenameTrackingPreview = new("dotnet_show_preview_for_rename_tracking", defaultValue: true);
Shared\Options\FeatureOnOffOptions.cs (2)
17public static readonly PerLanguageOption2<bool> RenameTracking = new("FeatureOnOffOptions_RenameTracking", defaultValue: true); 25public static readonly PerLanguageOption2<bool> RefactoringVerification = new("FeatureOnOffOptions_RefactoringVerification", defaultValue: false);
SplitComment\SplitCommentOptionsStorage.cs (1)
12new PerLanguageOption2<bool>("dotnet_split_comments", defaultValue: true);
StringCopyPaste\StringCopyPasteOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> AutomaticallyFixStringContentsOnPaste = new("dotnet_fix_string_contents_on_paste", defaultValue: true);
StringIndentation\StringIndentationOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> StringIdentation = new("dotnet_indent_strings", defaultValue: true);
Structure\OutliningOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> Outlining = new("dotnet_enter_outlining_mode_on_file_open", defaultValue: true);
Microsoft.CodeAnalysis.Features (13)
Diagnostics\Options\SolutionCrawlerOptionsStorage.cs (2)
17public static readonly PerLanguageOption2<BackgroundAnalysisScope> BackgroundAnalysisScopeOption = new( 23public static readonly PerLanguageOption2<CompilerDiagnosticsScope> CompilerDiagnosticsScopeOption = new(
EmbeddedLanguages\Json\LanguageServices\JsonDetectionOptionsStorage.cs (2)
12public static readonly PerLanguageOption2<bool> DetectAndOfferEditorFeaturesForProbableJsonStrings = new( 17public static PerLanguageOption2<bool> ReportInvalidJsonPatterns = new(
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexOptionsStorage.cs (1)
12public static PerLanguageOption2<bool> ReportInvalidRegexPatterns = new(
src\Analyzers\Core\Analyzers\ValidateFormatString\FormatStringValidationOptionStorage.cs (1)
12public static readonly PerLanguageOption2<bool> ReportInvalidPlaceholdersInStringDotFormatCalls = new(
src\Analyzers\Core\CodeFixes\ImplementType\ImplementTypeOptions.cs (2)
28public static readonly PerLanguageOption2<ImplementTypeInsertionBehavior> InsertionBehavior = new( 45public static readonly PerLanguageOption2<ImplementTypePropertyGenerationBehavior> PropertyGenerationBehavior = new(
SymbolSearch\SymbolSearchOptions.cs (5)
57public static PerLanguageOption2<bool> SearchReferenceAssemblies = new( 63public static PerLanguageOption2<bool> SearchNuGetPackages = new( 69public static PerLanguageOption2<bool> SearchReferencedProjectSymbols = new( 75public static PerLanguageOption2<bool> SearchUnreferencedProjectSourceSymbols = new( 81public static PerLanguageOption2<bool> SearchUnreferencedMetadataSymbols = new(
Microsoft.CodeAnalysis.LanguageServer.Protocol (53)
Features\Options\AutoFormattingOptionsStorage.cs (4)
20internal static readonly PerLanguageOption2<bool> FormatOnReturn = new( 23public static readonly PerLanguageOption2<bool> FormatOnTyping = new( 26public static readonly PerLanguageOption2<bool> FormatOnSemicolon = new( 29public static readonly PerLanguageOption2<bool> FormatOnCloseBrace = new(
Features\Options\BlockStructureOptionsStorage.cs (13)
33public static readonly PerLanguageOption2<bool> ShowBlockStructureGuidesForCommentsAndPreprocessorRegions = new( 36public static readonly PerLanguageOption2<bool> ShowBlockStructureGuidesForDeclarationLevelConstructs = new( 39public static readonly PerLanguageOption2<bool> ShowBlockStructureGuidesForCodeLevelConstructs = new( 42public static readonly PerLanguageOption2<bool> ShowOutliningForCommentsAndPreprocessorRegions = new( 45public static readonly PerLanguageOption2<bool> ShowOutliningForDeclarationLevelConstructs = new( 48public static readonly PerLanguageOption2<bool> ShowOutliningForCodeLevelConstructs = new( 51public static readonly PerLanguageOption2<bool> CollapseRegionsWhenFirstOpened = new( 54public static readonly PerLanguageOption2<bool> CollapseImportsWhenFirstOpened = new( 57public static readonly PerLanguageOption2<bool> CollapseSourceLinkEmbeddedDecompiledFilesWhenFirstOpened = new( 60public static readonly PerLanguageOption2<bool> CollapseMetadataSignatureFilesWhenFirstOpened = new( 63public static readonly PerLanguageOption2<bool> CollapseRegionsWhenCollapsingToDefinitions = new( 66public static readonly PerLanguageOption2<bool> CollapseLocalFunctionsWhenCollapsingToDefinitions = new( 69public static readonly PerLanguageOption2<int> MaximumBannerLength = new(
Features\Options\ClassificationOptionsStorage.cs (4)
25new("dotnet_classify_reassigned_variables", ClassificationOptions.Default.ClassifyReassignedVariables); 28new("dotnet_classify_obsolete_symbols", ClassificationOptions.Default.ClassifyObsoleteSymbols); 31new("dotnet_colorize_regex_patterns", ClassificationOptions.Default.ColorizeRegexPatterns); 34new("dotnet_colorize_json_patterns", ClassificationOptions.Default.ColorizeJsonPatterns);
Features\Options\CompletionOptionsStorage.cs (11)
45public static readonly PerLanguageOption2<bool> TriggerOnTyping = new("dotnet_trigger_completion_on_typing", CompletionOptions.Default.TriggerOnTyping, group: s_completionOptionGroup); 46public static readonly PerLanguageOption2<bool> TriggerOnTypingLetters = new("dotnet_trigger_completion_on_typing_letters", CompletionOptions.Default.TriggerOnTypingLetters, group: s_completionOptionGroup); 47public static readonly PerLanguageOption2<bool?> TriggerOnDeletion = new("dotnet_trigger_completion_on_deletion", CompletionOptions.Default.TriggerOnDeletion, group: s_completionOptionGroup); 48public static readonly PerLanguageOption2<EnterKeyRule> EnterKeyBehavior = new("dotnet_return_key_completion_behavior", CompletionOptions.Default.EnterKeyBehavior, serializer: EditorConfigValueSerializer.CreateSerializerForEnum<EnterKeyRule>(), group: s_completionOptionGroup); 49public static readonly PerLanguageOption2<SnippetsRule> SnippetsBehavior = new("dotnet_snippets_behavior", CompletionOptions.Default.SnippetsBehavior, serializer: EditorConfigValueSerializer.CreateSerializerForEnum<SnippetsRule>(), group: s_completionOptionGroup); 50public static readonly PerLanguageOption2<bool> ShowNameSuggestions = new("dotnet_show_name_completion_suggestions", CompletionOptions.Default.ShowNameSuggestions, group: s_completionOptionGroup); 55public static readonly PerLanguageOption2<bool?> ShowItemsFromUnimportedNamespaces = new("dotnet_show_completion_items_from_unimported_namespaces", CompletionOptions.Default.ShowItemsFromUnimportedNamespaces, group: s_completionOptionGroup); 57public static readonly PerLanguageOption2<bool> TriggerInArgumentLists = new("dotnet_trigger_completion_in_argument_lists", CompletionOptions.Default.TriggerInArgumentLists, group: s_completionOptionGroup); 64public static PerLanguageOption2<bool> ProvideRegexCompletions = new("dotnet_provide_regex_completions", CompletionOptions.Default.ProvideRegexCompletions, group: s_completionOptionGroup); 65public static readonly PerLanguageOption2<bool> ProvideDateAndTimeCompletions = new("dotnet_provide_date_and_time_completions", CompletionOptions.Default.ProvideDateAndTimeCompletions, group: s_completionOptionGroup); 66public static readonly PerLanguageOption2<bool?> ShowNewSnippetExperienceUserOption = new("dotnet_show_new_snippet_experience", CompletionOptions.Default.ShowNewSnippetExperienceUserOption, group: s_completionOptionGroup);
Features\Options\DocumentationCommentOptionsStorage.cs (1)
20public static readonly PerLanguageOption2<bool> AutoXmlDocCommentGeneration = new(
Features\Options\HighlightingOptionsStorage.cs (2)
21new("dotnet_highlight_related_regex_components", 26new("dotnet_highlight_related_json_components",
Features\Options\InlineHintsOptionsStorage.cs (13)
49new("dotnet_enable_inlay_hints_for_parameters", 54new("dotnet_enable_inlay_hints_for_literal_parameters", 59new("dotnet_enable_inlay_hints_for_indexer_parameters", 64new("dotnet_enable_inlay_hints_for_object_creation_parameters", 69new("dotnet_enable_inlay_hints_for_other_parameters", 74new("dotnet_suppress_inlay_hints_for_parameters_that_differ_only_by_suffix", 79new("dotnet_suppress_inlay_hints_for_parameters_that_match_method_intent", 84new("dotnet_suppress_inlay_hints_for_parameters_that_match_argument_name", 91new("csharp_enable_inlay_hints_for_types", 96new("csharp_enable_inlay_hints_for_implicit_variable_types", 101new("csharp_enable_inlay_hints_for_lambda_parameter_types", 106new("csharp_enable_inlay_hints_for_implicit_object_creation", 111new("csharp_enable_inlay_hints_for_collection_expressions",
Features\Options\QuickInfoOptionsStorage.cs (1)
20public static readonly PerLanguageOption2<bool> ShowRemarksInQuickInfo = new(
LspOptionsStorage.cs (4)
41public static readonly PerLanguageOption2<bool> LspEnableReferencesCodeLens = new("dotnet_enable_references_code_lens", defaultValue: true, group: s_codeLensOptionGroup); 46public static readonly PerLanguageOption2<bool> LspEnableTestsCodeLens = new("dotnet_enable_tests_code_lens", defaultValue: true, group: s_codeLensOptionGroup); 51public static readonly PerLanguageOption2<bool> LspEnableAutoInsert = new("dotnet_enable_auto_insert", defaultValue: true, group: s_autoInsertOptionGroup); 56public static readonly PerLanguageOption2<bool> LspOrganizeImportsOnFormat = new("dotnet_organize_imports_on_format", defaultValue: false, group: s_formattingOptionGroup);
Microsoft.CodeAnalysis.Workspaces (18)
Recommendations\RecommendationOptions.cs (2)
20public static readonly PerLanguageOption2<bool> HideAdvancedMembers = new PerLanguageOption2<bool>( 24public static readonly PerLanguageOption2<bool> FilterOutOfScopeLocals = new PerLanguageOption2<bool>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
150var option = new PerLanguageOption2<CodeStyleOption2<T>>(name, defaultValue, group, isEditorConfigOption: true, serializer: (serializerFactory ?? EditorConfigValueSerializer.CodeStyle).Invoke(defaultValue));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\FadingOptions.cs (3)
11public static readonly PerLanguageOption2<bool> FadeOutUnusedImports = new("dotnet_fade_out_unused_imports", defaultValue: true); 12public static readonly PerLanguageOption2<bool> FadeOutUnusedMembers = new("dotnet_fade_out_unused_members", defaultValue: true); 13public static readonly PerLanguageOption2<bool> FadeOutUnreachableCode = new("dotnet_fade_out_unreachable_code", defaultValue: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Editing\GenerationOptions.cs (2)
15public static readonly PerLanguageOption2<bool> PlaceSystemNamespaceFirst = new( 21public static readonly PerLanguageOption2<bool> SeparateImportDirectiveGroups = new(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (7)
26public static PerLanguageOption2<bool> UseTabs = new PerLanguageOption2<bool>( 31public static PerLanguageOption2<int> TabSize = new PerLanguageOption2<int>( 35public static PerLanguageOption2<int> IndentationSize = new PerLanguageOption2<int>( 39public static PerLanguageOption2<string> NewLine = new PerLanguageOption2<string>( 61public static PerLanguageOption2<IndentStyle> SmartIndent = new PerLanguageOption2<IndentStyle>( 80public static readonly PerLanguageOption2<int> WrappingColumn = new( 88public static readonly PerLanguageOption2<int> ConditionalExpressionWrappingLength = new(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (1)
23internal static PerLanguageOption2<NamingStylePreferences> NamingPreferences { get; } = new(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PublicOptionFactory.cs (1)
67=> new(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
30public static readonly PerLanguageOption2<bool> HideAdvancedMembers = new(
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Options\OptionKeyTests.cs (1)
86var option2 = new PerLanguageOption2<bool>(name: "name", defaultValue: false);
WorkspaceServiceTests\GlobalOptionServiceTests.cs (1)
272var perLanguageOption2 = new PerLanguageOption2<CodeStyleOption2<bool>>("test", new CodeStyleOption2<bool>(false, NotificationOption2.Warning)).WithPublicOption("test", "test");
Microsoft.VisualStudio.LanguageServices (1)
Workspace\VisualStudioNavigationOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> NavigateToObjectBrowser = new("visual_studio_navigate_to_object_browser", defaultValue: false);
209 references to PerLanguageOption2
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
BlockCommentEditing\BlockCommentEditingOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> AutoInsertBlockCommentStartString = new("csharp_insert_block_comment_start_string", defaultValue: true);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (4)
src\Analyzers\CSharp\Tests\QualifyMemberAccess\QualifyMemberAccessTests.cs (4)
34PerLanguageOption2<CodeStyleOption2<bool>> option) 40PerLanguageOption2<CodeStyleOption2<bool>> option, NotificationOption2 notification) 44[StringSyntax(PredefinedEmbeddedLanguageNames.CSharpTest)] string code, PerLanguageOption2<CodeStyleOption2<bool>> option) 48[StringSyntax(PredefinedEmbeddedLanguageNames.CSharpTest)] string code, PerLanguageOption2<CodeStyleOption2<bool>> option, NotificationOption2 notification)
Microsoft.CodeAnalysis.EditorFeatures (33)
AddImportOnPaste\AddImportOnPasteOptionsStorage.cs (1)
17public static readonly PerLanguageOption2<bool> AddImportsOnPaste = new("dotnet_add_imports_on_paste", defaultValue: true);
EditorConfigSettings\Data\CodeStyleSetting.cs (2)
74PerLanguageOption2<CodeStyleOption2<bool>> option, 108PerLanguageOption2<CodeStyleOption2<T>> option,
EditorConfigSettings\Data\Setting.cs (1)
54PerLanguageOption2<TValue> option,
ExtractMethod\ExtractMethodPresentationOptionsStorage.cs (1)
13public static readonly PerLanguageOption2<bool> AllowBestEffort = new("dotnet_allow_best_effort_when_extracting_method", defaultValue: true);
Formatting\FormattingOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> FormatOnPaste =
InheritanceMargin\InheritanceMarginOptionsStorage.cs (2)
11public static readonly PerLanguageOption2<bool?> ShowInheritanceMargin = new("dotnet_show_inheritance_margin", defaultValue: true); 15public static readonly PerLanguageOption2<bool> InheritanceMarginIncludeGlobalImports = new("dotnet_show_global_imports_in_inheritance_margin", defaultValue: true);
InlineDiagnostics\InlineDiagnosticsOptionsStorage.cs (2)
11public static readonly PerLanguageOption2<bool> EnableInlineDiagnostics = 15public static readonly PerLanguageOption2<InlineDiagnosticsLocations> Location =
InlineHints\InlineHintsViewOptionsStorage.cs (1)
14public static readonly PerLanguageOption2<bool> ColorHints = new(
KeywordHighlighting\KeywordHighlightingOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> KeywordHighlighting = new("dotnet_highlight_keywords", defaultValue: true);
LineSeparators\LineSeparatorsOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> LineSeparator = new("dotnet_display_line_separators", defaultValue: false);
Options\CompletionViewOptionsStorage.cs (4)
11public static readonly PerLanguageOption2<bool> HighlightMatchingPortionsOfCompletionListItems = 14public static readonly PerLanguageOption2<bool> ShowCompletionItemFilters = 18public static readonly PerLanguageOption2<bool?> EnableArgumentCompletionSnippets = 21public static readonly PerLanguageOption2<bool> BlockForCompletionItems =
Options\LegacyGlobalOptionsWorkspaceService.cs (3)
26private static readonly PerLanguageOption2<bool> s_generateOperators = new( 30private static readonly PerLanguageOption2<bool> s_implementIEquatable = new( 34internal static readonly PerLanguageOption2<bool> s_addNullChecks = new(
Options\NavigationBarViewOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> ShowNavigationBar = new(
Options\SignatureHelpViewOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> ShowSignatureHelp = new(
ReferenceHighlighting\ReferenceHighlightingOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> ReferenceHighlighting = new("dotnet_highlight_references", defaultValue: true);
RenameTracking\RenameTrackingOptionsStorage.cs (1)
13public static readonly PerLanguageOption2<bool> RenameTrackingPreview = new("dotnet_show_preview_for_rename_tracking", defaultValue: true);
Shared\Options\FeatureOnOffOptions.cs (2)
17public static readonly PerLanguageOption2<bool> RenameTracking = new("FeatureOnOffOptions_RenameTracking", defaultValue: true); 25public static readonly PerLanguageOption2<bool> RefactoringVerification = new("FeatureOnOffOptions_RefactoringVerification", defaultValue: false);
SplitComment\SplitCommentOptionsStorage.cs (1)
11public static PerLanguageOption2<bool> Enabled =
StringCopyPaste\StringCopyPasteOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> AutomaticallyFixStringContentsOnPaste = new("dotnet_fix_string_contents_on_paste", defaultValue: true);
StringIndentation\StringIndentationOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> StringIdentation = new("dotnet_indent_strings", defaultValue: true);
Structure\OutliningOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> Outlining = new("dotnet_enter_outlining_mode_on_file_open", defaultValue: true);
Tagging\AbstractAsynchronousTaggerProvider.cs (1)
72/// <remarks>All values must either be an <see cref="Option2{T}"/> or a <see cref="PerLanguageOption2{T}"/>.</remarks>
Tagging\AbstractAsynchronousTaggerProvider.TagSource.cs (1)
311Contract.ThrowIfTrue(_dataSource.Options.Any(o => o is not Option2<bool> and not PerLanguageOption2<bool>), "All options must be Option2<bool> or PerLanguageOption2<bool>");
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (1)
587if (option is PerLanguageOption2<bool> perLanguageOption &&
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Options\GlobalOptionsTests.cs (2)
63public T GetOption<T>(PerLanguageOption2<T> option, string languageName) 83public void SetGlobalOption<T>(PerLanguageOption2<T> option, string language, T value)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Options\OmniSharpSolutionAnalyzerConfigOptionsUpdater.cs (1)
59PerLanguageOption2<T> option,
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
RazorGlobalOptions.cs (2)
52public T GetOption<T>(PerLanguageOption2<T> option, string languageName) 61public void SetGlobalOption<T>(PerLanguageOption2<T> option, string language, T value) => throw new NotImplementedException();
Microsoft.CodeAnalysis.Features (26)
Diagnostics\Options\SolutionCrawlerOptionsStorage.cs (2)
17public static readonly PerLanguageOption2<BackgroundAnalysisScope> BackgroundAnalysisScopeOption = new( 23public static readonly PerLanguageOption2<CompilerDiagnosticsScope> CompilerDiagnosticsScopeOption = new(
EmbeddedLanguages\Json\LanguageServices\JsonDetectionOptionsStorage.cs (2)
12public static readonly PerLanguageOption2<bool> DetectAndOfferEditorFeaturesForProbableJsonStrings = new( 17public static PerLanguageOption2<bool> ReportInvalidJsonPatterns = new(
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexOptionsStorage.cs (1)
12public static PerLanguageOption2<bool> ReportInvalidRegexPatterns = new(
src\Analyzers\Core\Analyzers\AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer.cs (7)
42PerLanguageOption2<bool>? fadingOption, 74PerLanguageOption2<bool>? fadingOption, 88protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableArray<DiagnosticDescriptor> descriptors, PerLanguageOption2<bool> fadingOption) 103protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, IOption2 Option)> supportedDiagnosticsWithOptions, PerLanguageOption2<bool>? fadingOption) 112protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableArray<(DiagnosticDescriptor Descriptor, ImmutableHashSet<IOption2> Options)> supportedDiagnosticsWithOptions, PerLanguageOption2<bool>? fadingOption) 118private static void AddDiagnosticIdToFadingOptionMapping(string diagnosticId, PerLanguageOption2<bool>? fadingOption) 126private static void AddDescriptorsToFadingOptionMapping(IEnumerable<DiagnosticDescriptor> descriptors, PerLanguageOption2<bool>? fadingOption)
src\Analyzers\Core\Analyzers\AnalyzerOptionsProvider.cs (1)
74public TValue GetOption<TValue>(PerLanguageOption2<TValue> option)
src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (4)
24private static readonly ConcurrentDictionary<string, PerLanguageOption2<bool>> s_diagnosticIdToFadingOptionMap = new(); 31public static bool TryGetMappedFadingOption(string diagnosticId, [NotNullWhen(true)] out PerLanguageOption2<bool>? fadingOption) 93public static void AddFadingOptionMapping(string diagnosticId, PerLanguageOption2<bool> fadingOption) 100Debug.Assert(!s_diagnosticIdToFadingOptionMap.TryGetValue(diagnosticId, out var existingOption) || existingOption.Equals(fadingOption));
src\Analyzers\Core\Analyzers\UseConditionalExpression\AbstractUseConditionalExpressionDiagnosticAnalyzer.cs (1)
18PerLanguageOption2<CodeStyleOption2<bool>> option)
src\Analyzers\Core\Analyzers\ValidateFormatString\FormatStringValidationOptionStorage.cs (1)
12public static readonly PerLanguageOption2<bool> ReportInvalidPlaceholdersInStringDotFormatCalls = new(
src\Analyzers\Core\CodeFixes\ImplementType\ImplementTypeOptions.cs (2)
28public static readonly PerLanguageOption2<ImplementTypeInsertionBehavior> InsertionBehavior = new( 45public static readonly PerLanguageOption2<ImplementTypePropertyGenerationBehavior> PropertyGenerationBehavior = new(
SymbolSearch\SymbolSearchOptions.cs (5)
57public static PerLanguageOption2<bool> SearchReferenceAssemblies = new( 63public static PerLanguageOption2<bool> SearchNuGetPackages = new( 69public static PerLanguageOption2<bool> SearchReferencedProjectSymbols = new( 75public static PerLanguageOption2<bool> SearchUnreferencedProjectSourceSymbols = new( 81public static PerLanguageOption2<bool> SearchUnreferencedMetadataSymbols = new(
Microsoft.CodeAnalysis.LanguageServer.Protocol (55)
Extensions\ProtocolConversions.Diagnostics.cs (1)
272if (IDEDiagnosticIdToOptionMappingHelper.TryGetMappedFadingOption(diagnosticData.Id, out var fadingOption))
Features\Options\AutoFormattingOptionsStorage.cs (4)
20internal static readonly PerLanguageOption2<bool> FormatOnReturn = new( 23public static readonly PerLanguageOption2<bool> FormatOnTyping = new( 26public static readonly PerLanguageOption2<bool> FormatOnSemicolon = new( 29public static readonly PerLanguageOption2<bool> FormatOnCloseBrace = new(
Features\Options\BlockStructureOptionsStorage.cs (13)
33public static readonly PerLanguageOption2<bool> ShowBlockStructureGuidesForCommentsAndPreprocessorRegions = new( 36public static readonly PerLanguageOption2<bool> ShowBlockStructureGuidesForDeclarationLevelConstructs = new( 39public static readonly PerLanguageOption2<bool> ShowBlockStructureGuidesForCodeLevelConstructs = new( 42public static readonly PerLanguageOption2<bool> ShowOutliningForCommentsAndPreprocessorRegions = new( 45public static readonly PerLanguageOption2<bool> ShowOutliningForDeclarationLevelConstructs = new( 48public static readonly PerLanguageOption2<bool> ShowOutliningForCodeLevelConstructs = new( 51public static readonly PerLanguageOption2<bool> CollapseRegionsWhenFirstOpened = new( 54public static readonly PerLanguageOption2<bool> CollapseImportsWhenFirstOpened = new( 57public static readonly PerLanguageOption2<bool> CollapseSourceLinkEmbeddedDecompiledFilesWhenFirstOpened = new( 60public static readonly PerLanguageOption2<bool> CollapseMetadataSignatureFilesWhenFirstOpened = new( 63public static readonly PerLanguageOption2<bool> CollapseRegionsWhenCollapsingToDefinitions = new( 66public static readonly PerLanguageOption2<bool> CollapseLocalFunctionsWhenCollapsingToDefinitions = new( 69public static readonly PerLanguageOption2<int> MaximumBannerLength = new(
Features\Options\ClassificationOptionsStorage.cs (4)
24public static PerLanguageOption2<bool> ClassifyReassignedVariables = 27public static PerLanguageOption2<bool> ClassifyObsoleteSymbols = 30public static PerLanguageOption2<bool> ColorizeRegexPatterns = 33public static PerLanguageOption2<bool> ColorizeJsonPatterns =
Features\Options\CompletionOptionsStorage.cs (11)
45public static readonly PerLanguageOption2<bool> TriggerOnTyping = new("dotnet_trigger_completion_on_typing", CompletionOptions.Default.TriggerOnTyping, group: s_completionOptionGroup); 46public static readonly PerLanguageOption2<bool> TriggerOnTypingLetters = new("dotnet_trigger_completion_on_typing_letters", CompletionOptions.Default.TriggerOnTypingLetters, group: s_completionOptionGroup); 47public static readonly PerLanguageOption2<bool?> TriggerOnDeletion = new("dotnet_trigger_completion_on_deletion", CompletionOptions.Default.TriggerOnDeletion, group: s_completionOptionGroup); 48public static readonly PerLanguageOption2<EnterKeyRule> EnterKeyBehavior = new("dotnet_return_key_completion_behavior", CompletionOptions.Default.EnterKeyBehavior, serializer: EditorConfigValueSerializer.CreateSerializerForEnum<EnterKeyRule>(), group: s_completionOptionGroup); 49public static readonly PerLanguageOption2<SnippetsRule> SnippetsBehavior = new("dotnet_snippets_behavior", CompletionOptions.Default.SnippetsBehavior, serializer: EditorConfigValueSerializer.CreateSerializerForEnum<SnippetsRule>(), group: s_completionOptionGroup); 50public static readonly PerLanguageOption2<bool> ShowNameSuggestions = new("dotnet_show_name_completion_suggestions", CompletionOptions.Default.ShowNameSuggestions, group: s_completionOptionGroup); 55public static readonly PerLanguageOption2<bool?> ShowItemsFromUnimportedNamespaces = new("dotnet_show_completion_items_from_unimported_namespaces", CompletionOptions.Default.ShowItemsFromUnimportedNamespaces, group: s_completionOptionGroup); 57public static readonly PerLanguageOption2<bool> TriggerInArgumentLists = new("dotnet_trigger_completion_in_argument_lists", CompletionOptions.Default.TriggerInArgumentLists, group: s_completionOptionGroup); 64public static PerLanguageOption2<bool> ProvideRegexCompletions = new("dotnet_provide_regex_completions", CompletionOptions.Default.ProvideRegexCompletions, group: s_completionOptionGroup); 65public static readonly PerLanguageOption2<bool> ProvideDateAndTimeCompletions = new("dotnet_provide_date_and_time_completions", CompletionOptions.Default.ProvideDateAndTimeCompletions, group: s_completionOptionGroup); 66public static readonly PerLanguageOption2<bool?> ShowNewSnippetExperienceUserOption = new("dotnet_show_new_snippet_experience", CompletionOptions.Default.ShowNewSnippetExperienceUserOption, group: s_completionOptionGroup);
Features\Options\DocumentationCommentOptionsStorage.cs (1)
20public static readonly PerLanguageOption2<bool> AutoXmlDocCommentGeneration = new(
Features\Options\HighlightingOptionsStorage.cs (2)
20public static PerLanguageOption2<bool> HighlightRelatedRegexComponentsUnderCursor = 25public static PerLanguageOption2<bool> HighlightRelatedJsonComponentsUnderCursor =
Features\Options\IndentationOptionsStorage.cs (1)
25public static PerLanguageOption2<FormattingOptions2.IndentStyle> SmartIndent => FormattingOptions2.SmartIndent;
Features\Options\InlineHintsOptionsStorage.cs (13)
48public static readonly PerLanguageOption2<bool> EnabledForParameters = 53public static readonly PerLanguageOption2<bool> ForLiteralParameters = 58public static readonly PerLanguageOption2<bool> ForIndexerParameters = 63public static readonly PerLanguageOption2<bool> ForObjectCreationParameters = 68public static readonly PerLanguageOption2<bool> ForOtherParameters = 73public static readonly PerLanguageOption2<bool> SuppressForParametersThatDifferOnlyBySuffix = 78public static readonly PerLanguageOption2<bool> SuppressForParametersThatMatchMethodIntent = 83public static readonly PerLanguageOption2<bool> SuppressForParametersThatMatchArgumentName = 90public static readonly PerLanguageOption2<bool> EnabledForTypes = 95public static readonly PerLanguageOption2<bool> ForImplicitVariableTypes = 100public static readonly PerLanguageOption2<bool> ForLambdaParameterTypes = 105public static readonly PerLanguageOption2<bool> ForImplicitObjectCreation = 110public static readonly PerLanguageOption2<bool> ForCollectionExpressions =
Features\Options\QuickInfoOptionsStorage.cs (1)
20public static readonly PerLanguageOption2<bool> ShowRemarksInQuickInfo = new(
LspOptionsStorage.cs (4)
41public static readonly PerLanguageOption2<bool> LspEnableReferencesCodeLens = new("dotnet_enable_references_code_lens", defaultValue: true, group: s_codeLensOptionGroup); 46public static readonly PerLanguageOption2<bool> LspEnableTestsCodeLens = new("dotnet_enable_tests_code_lens", defaultValue: true, group: s_codeLensOptionGroup); 51public static readonly PerLanguageOption2<bool> LspEnableAutoInsert = new("dotnet_enable_auto_insert", defaultValue: true, group: s_autoInsertOptionGroup); 56public static readonly PerLanguageOption2<bool> LspOrganizeImportsOnFormat = new("dotnet_organize_imports_on_format", defaultValue: false, group: s_formattingOptionGroup);
Microsoft.CodeAnalysis.Workspaces (72)
Options\GlobalOptionService.cs (2)
65public T GetOption<T>(PerLanguageOption2<T> option, string language) 139public void SetGlobalOption<T>(PerLanguageOption2<T> option, string language, T value)
Options\IGlobalOptionService.cs (2)
24T GetOption<T>(PerLanguageOption2<T> option, string language); 39void SetGlobalOption<T>(PerLanguageOption2<T> option, string language, T value);
Options\PerLanguageOption.cs (1)
14/// <inheritdoc cref="PerLanguageOption2{T}"/>
Recommendations\RecommendationOptions.cs (2)
20public static readonly PerLanguageOption2<bool> HideAdvancedMembers = new PerLanguageOption2<bool>( 24public static readonly PerLanguageOption2<bool> FilterOutOfScopeLocals = new PerLanguageOption2<bool>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (2)
143public static PerLanguageOption2<CodeStyleOption2<T>> CreatePerLanguageEditorConfigOption<T>( 150var option = new PerLanguageOption2<CodeStyleOption2<T>>(name, defaultValue, group, isEditorConfigOption: true, serializer: (serializerFactory ?? EditorConfigValueSerializer.CodeStyle).Invoke(defaultValue));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (35)
23private static PerLanguageOption2<CodeStyleOption2<T>> CreatePerLanguageOption<T>( 35private static PerLanguageOption2<CodeStyleOption2<bool>> CreateQualifyAccessOption(string name) 41public static readonly PerLanguageOption2<CodeStyleOption2<bool>> QualifyFieldAccess = CreateQualifyAccessOption( 48public static readonly PerLanguageOption2<CodeStyleOption2<bool>> QualifyPropertyAccess = CreateQualifyAccessOption( 55public static readonly PerLanguageOption2<CodeStyleOption2<bool>> QualifyMethodAccess = CreateQualifyAccessOption( 62public static readonly PerLanguageOption2<CodeStyleOption2<bool>> QualifyEventAccess = CreateQualifyAccessOption( 69public static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferIntrinsicPredefinedTypeKeywordInDeclaration = CreatePerLanguageOption( 78public static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferIntrinsicPredefinedTypeKeywordInMemberAccess = CreatePerLanguageOption( 84internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferObjectInitializer = CreatePerLanguageOption( 89internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferCollectionInitializer = CreatePerLanguageOption( 94internal static readonly PerLanguageOption2<CodeStyleOption2<CollectionExpressionPreference>> PreferCollectionExpression = CreatePerLanguageOption( 102internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferSimplifiedBooleanExpressions = CreatePerLanguageOption( 115internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferCoalesceExpression = CreatePerLanguageOption( 120internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferNullPropagation = CreatePerLanguageOption( 125internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferExplicitTupleNames = CreatePerLanguageOption( 130internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferAutoProperties = CreatePerLanguageOption( 135internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferInferredTupleNames = CreatePerLanguageOption( 140internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferInferredAnonymousTypeMemberNames = CreatePerLanguageOption( 145internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferIsNullCheckOverReferenceEqualityMethod = CreatePerLanguageOption( 150internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferConditionalExpressionOverAssignment = CreatePerLanguageOption( 155internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferConditionalExpressionOverReturn = CreatePerLanguageOption( 160internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferCompoundAssignment = CreatePerLanguageOption( 165internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferSimplifiedInterpolation = CreatePerLanguageOption( 177internal static readonly PerLanguageOption2<CodeStyleOption2<UnusedParametersPreference>> UnusedParameters = CreatePerLanguageOption( 207internal static readonly PerLanguageOption2<CodeStyleOption2<AccessibilityModifiersRequired>> AccessibilityModifiersRequired = CreatePerLanguageOption( 227internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferReadonly = CreatePerLanguageOption( 251private static PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> CreateParenthesesOption(CodeStyleOption2<ParenthesesPreference> defaultValue, string name) 277internal static readonly PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> ArithmeticBinaryParentheses = 282internal static readonly PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> OtherBinaryParentheses = 287internal static readonly PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> RelationalBinaryParentheses = 292internal static readonly PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> OtherParentheses = 328internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferSystemHashCode = CreatePerLanguageOption( 333public static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferNamespaceAndFolderMatchStructure = CreatePerLanguageOption( 338internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> AllowMultipleBlankLines = CreatePerLanguageOption( 343internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> AllowStatementImmediatelyAfterBlock = CreatePerLanguageOption(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\FadingOptions.cs (3)
11public static readonly PerLanguageOption2<bool> FadeOutUnusedImports = new("dotnet_fade_out_unused_imports", defaultValue: true); 12public static readonly PerLanguageOption2<bool> FadeOutUnusedMembers = new("dotnet_fade_out_unused_members", defaultValue: true); 13public static readonly PerLanguageOption2<bool> FadeOutUnreachableCode = new("dotnet_fade_out_unreachable_code", defaultValue: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Editing\GenerationOptions.cs (2)
15public static readonly PerLanguageOption2<bool> PlaceSystemNamespaceFirst = new( 21public static readonly PerLanguageOption2<bool> SeparateImportDirectiveGroups = new(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (7)
26public static PerLanguageOption2<bool> UseTabs = new PerLanguageOption2<bool>( 31public static PerLanguageOption2<int> TabSize = new PerLanguageOption2<int>( 35public static PerLanguageOption2<int> IndentationSize = new PerLanguageOption2<int>( 39public static PerLanguageOption2<string> NewLine = new PerLanguageOption2<string>( 61public static PerLanguageOption2<IndentStyle> SmartIndent = new PerLanguageOption2<IndentStyle>( 80public static readonly PerLanguageOption2<int> WrappingColumn = new( 88public static readonly PerLanguageOption2<int> ConditionalExpressionWrappingLength = new(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleOptions.cs (1)
23internal static PerLanguageOption2<NamingStylePreferences> NamingPreferences { get; } = new(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\IOptionReader.cs (4)
34public static T GetOption<T>(this IOptionsReader options, PerLanguageOption2<T> option, string language) 37public static T GetOption<T>(this IOptionsReader options, PerLanguageOption2<T> option, string language, T defaultValue) 46public static T GetOptionValue<T>(this IOptionsReader options, PerLanguageOption2<CodeStyleOption2<T>> option, string language) 49public static T GetOptionValue<T>(this IOptionsReader options, PerLanguageOption2<CodeStyleOption2<T>> option, string language, T defaultValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\IPublicOption.cs (1)
11/// to distinguish them from internal ones (<see cref="Option2{T}"/> and <see cref="PerLanguageOption2{T}"/>).
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PerLanguageOption2.cs (1)
12/// Marker interface for <see cref="PerLanguageOption2{T}"/>.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\PublicOptionFactory.cs (8)
66public static PerLanguageOption2<T> WithPublicOption<T, TPublicValue>(this PerLanguageOption2<T> option, string feature, string name, Func<T, TPublicValue> toPublicValue, Func<TPublicValue, T> toInternalValue) 81public static PerLanguageOption2<T> WithPublicOption<T>(this PerLanguageOption2<T> option, string feature, string name) 84public static PerLanguageOption2<CodeStyleOption2<T>> WithPublicOption<T>(this PerLanguageOption2<CodeStyleOption2<T>> option, string feature, string name) 93public static PerLanguageOption<T> ToPublicOption<T>(this PerLanguageOption2<T> option) 105public static PerLanguageOption<CodeStyleOption<T>> ToPublicOption<T>(this PerLanguageOption2<CodeStyleOption2<T>> option)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
30public static readonly PerLanguageOption2<bool> HideAdvancedMembers = new(
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
OptionsCollection.cs (3)
56public void Add<T>(PerLanguageOption2<T> option, T value) 59public void Add<T>(PerLanguageOption2<CodeStyleOption2<T>> option, T value) 62public void Add<T>(PerLanguageOption2<CodeStyleOption2<T>> option, T value, NotificationOption2 notification)
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
Options\OptionKeyTests.cs (2)
86var option2 = new PerLanguageOption2<bool>(name: "name", defaultValue: false); 168var option = CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess;
WorkspaceServiceTests\GlobalOptionServiceTests.cs (1)
272var perLanguageOption2 = new PerLanguageOption2<CodeStyleOption2<bool>>("test", new CodeStyleOption2<bool>(false, NotificationOption2.Warning)).WithPublicOption("test", "test");
Microsoft.VisualStudio.LanguageServices (3)
SymbolSearch\AbstractDelayStartedService.cs (2)
45private readonly ImmutableArray<PerLanguageOption2<bool>> _perLanguageOptions; 59ImmutableArray<PerLanguageOption2<bool>> perLanguageOptions)
Workspace\VisualStudioNavigationOptionsStorage.cs (1)
11public static readonly PerLanguageOption2<bool> NavigateToObjectBrowser = new("visual_studio_navigate_to_object_browser", defaultValue: false);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Options\AutomationObject\AutomationObject.cs (2)
24private int GetBooleanOption(PerLanguageOption2<bool> option) 36private void SetBooleanOption(PerLanguageOption2<bool> option, int value)
Roslyn.VisualStudio.DiagnosticsWindow (2)
OptionPages\InternalOptionsControl.cs (2)
202BindToOption(checkBox, (PerLanguageOption2<bool>)option, languageName); 213BindToOption(textBox, (PerLanguageOption2<int>)option, languageName);