110 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 (38)
AddImportOnPaste\AddImportOnPasteOptionsStorage.cs (1)
17public static readonly PerLanguageOption2<bool> AddImportsOnPaste = new("dotnet_add_imports_on_paste", defaultValue: true);
ExtractMethod\ExtractMethodPresentationOptionsStorage.cs (1)
11public 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\InlineHintsOptionsStorage.cs (12)
45new("dotnet_enable_inline_hints_for_parameters", 49new("dotnet_enable_inline_hints_for_literal_parameters", 53new("dotnet_enable_inline_hints_for_indexer_parameters", 57new("dotnet_enable_inline_hints_for_object_creation_parameters", 61new("dotnet_enable_inline_hints_for_other_parameters", 65new("dotnet_suppress_inline_hints_for_parameters_that_differ_only_by_suffix", 69new("dotnet_suppress_inline_hints_for_parameters_that_match_method_intent", 73new("dotnet_suppress_inline_hints_for_parameters_that_match_argument_name", 79new("csharp_enable_inline_hints_for_types", 83new("csharp_enable_inline_hints_for_implicit_variable_types", 87new("csharp_enable_inline_hints_for_lambda_parameter_types", 91new("csharp_enable_inline_hints_for_implicit_object_creation",
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)
25private static readonly PerLanguageOption2<bool> s_generateOperators = new( 29private static readonly PerLanguageOption2<bool> s_implementIEquatable = new( 33internal 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.EditorFeatures.Wpf (1)
InlineHints\InlineHintsViewOptionsStorage.cs (1)
14public static readonly PerLanguageOption2<bool> ColorHints = new(
Microsoft.CodeAnalysis.LanguageServer.Protocol (49)
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 (12)
32public static readonly PerLanguageOption2<bool> ShowBlockStructureGuidesForCommentsAndPreprocessorRegions = new( 35public static readonly PerLanguageOption2<bool> ShowBlockStructureGuidesForDeclarationLevelConstructs = new( 38public static readonly PerLanguageOption2<bool> ShowBlockStructureGuidesForCodeLevelConstructs = new( 41public static readonly PerLanguageOption2<bool> ShowOutliningForCommentsAndPreprocessorRegions = new( 44public static readonly PerLanguageOption2<bool> ShowOutliningForDeclarationLevelConstructs = new( 47public static readonly PerLanguageOption2<bool> ShowOutliningForCodeLevelConstructs = new( 50public static readonly PerLanguageOption2<bool> CollapseRegionsWhenFirstOpened = new( 53public static readonly PerLanguageOption2<bool> CollapseImportsWhenFirstOpened = new( 56public static readonly PerLanguageOption2<bool> CollapseSourceLinkEmbeddedDecompiledFilesWhenFirstOpened = new( 59public static readonly PerLanguageOption2<bool> CollapseMetadataSignatureFilesWhenFirstOpened = new( 62public static readonly PerLanguageOption2<bool> CollapseRegionsWhenCollapsingToDefinitions = new( 65public static readonly PerLanguageOption2<int> MaximumBannerLength = new(
Features\Options\ClassificationOptionsStorage.cs (3)
21new("dotnet_classify_reassigned_variables", ClassificationOptions.Default.ClassifyReassignedVariables); 24new("dotnet_colorize_regex_patterns", ClassificationOptions.Default.ColorizeRegexPatterns); 27new("dotnet_colorize_json_patterns", ClassificationOptions.Default.ColorizeJsonPatterns);
Features\Options\CodeActionOptionsStorage.cs (2)
22new("FormattingOptions_WrappingColumn", CodeActionOptions.DefaultWrappingColumn); 44public static readonly PerLanguageOption2<int> ConditionalExpressionWrappingLength = new(
Features\Options\CompletionOptionsStorage.cs (12)
39public static readonly PerLanguageOption2<bool> HideAdvancedMembers = new("dotnet_hide_advanced_members_in_completion", CompletionOptions.Default.HideAdvancedMembers, group: s_completionOptionGroup); 40public static readonly PerLanguageOption2<bool> TriggerOnTyping = new("dotnet_trigger_completion_on_typing", CompletionOptions.Default.TriggerOnTyping, group: s_completionOptionGroup); 41public static readonly PerLanguageOption2<bool> TriggerOnTypingLetters = new("dotnet_trigger_completion_on_typing_letters", CompletionOptions.Default.TriggerOnTypingLetters, group: s_completionOptionGroup); 42public static readonly PerLanguageOption2<bool?> TriggerOnDeletion = new("dotnet_trigger_completion_on_deletion", CompletionOptions.Default.TriggerOnDeletion, group: s_completionOptionGroup); 43public static readonly PerLanguageOption2<EnterKeyRule> EnterKeyBehavior = new("dotnet_return_key_completion_behavior", CompletionOptions.Default.EnterKeyBehavior, serializer: EditorConfigValueSerializer.CreateSerializerForEnum<EnterKeyRule>(), group: s_completionOptionGroup); 44public static readonly PerLanguageOption2<SnippetsRule> SnippetsBehavior = new("dotnet_snippets_behavior", CompletionOptions.Default.SnippetsBehavior, serializer: EditorConfigValueSerializer.CreateSerializerForEnum<SnippetsRule>(), group: s_completionOptionGroup); 45public static readonly PerLanguageOption2<bool> ShowNameSuggestions = new("dotnet_show_name_completion_suggestions", CompletionOptions.Default.ShowNameSuggestions, group: s_completionOptionGroup); 50public static readonly PerLanguageOption2<bool?> ShowItemsFromUnimportedNamespaces = new("dotnet_show_completion_items_from_unimported_namespaces", CompletionOptions.Default.ShowItemsFromUnimportedNamespaces, group: s_completionOptionGroup); 52public static readonly PerLanguageOption2<bool> TriggerInArgumentLists = new("dotnet_trigger_completion_in_argument_lists", CompletionOptions.Default.TriggerInArgumentLists, group: s_completionOptionGroup); 59public static PerLanguageOption2<bool> ProvideRegexCompletions = new("dotnet_provide_regex_completions", CompletionOptions.Default.ProvideRegexCompletions, group: s_completionOptionGroup); 60public static readonly PerLanguageOption2<bool> ProvideDateAndTimeCompletions = new("dotnet_provide_date_and_time_completions", CompletionOptions.Default.ProvideDateAndTimeCompletions, group: s_completionOptionGroup); 61public static readonly PerLanguageOption2<bool?> ShowNewSnippetExperienceUserOption = new("dotnet_show_new_snippet_experience", CompletionOptions.Default.ShowNewSnippetExperienceUserOption, group: s_completionOptionGroup);
Features\Options\DocumentationCommentOptionsStorage.cs (1)
22public static readonly PerLanguageOption2<bool> AutoXmlDocCommentGeneration = new(
Features\Options\ExtractMethodOptionsStorage.cs (1)
36public static readonly PerLanguageOption2<bool> DontPutOutOrRefOnStruct = new(
Features\Options\HighlightingOptionsStorage.cs (2)
21new("dotnet_highlight_related_regex_components", 26new("dotnet_highlight_related_json_components",
Features\Options\IdeAnalyzerOptionsStorage.cs (4)
41public static PerLanguageOption2<bool> ReportInvalidPlaceholdersInStringDotFormatCalls = new( 44public static PerLanguageOption2<bool> ReportInvalidRegexPatterns = new( 47public static PerLanguageOption2<bool> ReportInvalidJsonPatterns = new( 50public static PerLanguageOption2<bool> DetectAndOfferEditorFeaturesForProbableJsonStrings = new(
Features\Options\ImplementTypeOptionsStorage.cs (2)
26new("dotnet_insertion_behavior", 30new("dotnet_property_generation_behavior",
Features\Options\QuickInfoOptionsStorage.cs (1)
20public static readonly PerLanguageOption2<bool> ShowRemarksInQuickInfo = new(
Features\Options\SolutionCrawlerOptionsStorage.cs (3)
16public static readonly PerLanguageOption2<BackgroundAnalysisScope> BackgroundAnalysisScopeOption = new( 28public static readonly PerLanguageOption2<CompilerDiagnosticsScope> CompilerDiagnosticsScopeOption = new( 31public static readonly PerLanguageOption2<bool> RemoveDocumentDiagnosticsOnDocumentClose = new(
Features\Options\SymbolSearchOptionsStorage.cs (2)
21new("dotnet_search_reference_assemblies", 26new("dotnet_search_nuget_packages", SymbolSearchOptions.Default.SearchNuGetPackages, group: s_optionGroup);
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (3)
AutomaticInsertionOfAbstractOrInterfaceMembers\AutomaticInsertionOfAbstractOrInterfaceMembersOptionsStorage.vb (1)
10Public Shared ReadOnly AutomaticInsertionOfAbstractOrInterfaceMembers As PerLanguageOption2(Of Boolean) = New PerLanguageOption2(Of Boolean)(
EndConstructGeneration\EndConstructGenerationOptionsStorage.vb (1)
9Public Shared ReadOnly EndConstruct As New PerLanguageOption2(Of Boolean)("visual_basic_generate_end_construct", defaultValue:=True)
LineCommit\LineCommitOptionsStorage.vb (1)
9Public Shared ReadOnly PrettyListing As New PerLanguageOption2(Of Boolean)("visual_basic_pretty_listing", defaultValue:=True)
Microsoft.CodeAnalysis.Workspaces (15)
CodeStyleHelpers.cs (1)
148var option = new PerLanguageOption2<CodeStyleOption2<T>>(name, defaultValue, group, isEditorConfigOption: true, serializer: (serializerFactory ?? EditorConfigValueSerializer.CodeStyle).Invoke(defaultValue));
CodeStyleOptions2.cs (1)
316internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferSystemHashCode = new(
FadingOptions.cs (2)
12public static readonly PerLanguageOption2<bool> FadeOutUnusedImports = new("dotnet_fade_out_unused_imports", defaultValue: true); 13public static readonly PerLanguageOption2<bool> FadeOutUnreachableCode = new("dotnet_fade_out_unreachable_code", defaultValue: true);
FormattingOptions2.cs (5)
27public static PerLanguageOption2<bool> UseTabs = new PerLanguageOption2<bool>( 32public static PerLanguageOption2<int> TabSize = new PerLanguageOption2<int>( 36public static PerLanguageOption2<int> IndentationSize = new PerLanguageOption2<int>( 40public static PerLanguageOption2<string> NewLine = new PerLanguageOption2<string>( 62public static PerLanguageOption2<IndentStyle> SmartIndent = new PerLanguageOption2<IndentStyle>(
GenerationOptions.cs (2)
15public static readonly PerLanguageOption2<bool> PlaceSystemNamespaceFirst = new( 21public static readonly PerLanguageOption2<bool> SeparateImportDirectiveGroups = new(
NamingStyleOptions.cs (1)
24internal static PerLanguageOption2<NamingStylePreferences> NamingPreferences { get; } = new(
PublicOptionFactory.cs (1)
79=> new(
Recommendations\RecommendationOptions.cs (2)
20public static readonly PerLanguageOption2<bool> HideAdvancedMembers = new PerLanguageOption2<bool>( 24public static readonly PerLanguageOption2<bool> FilterOutOfScopeLocals = new PerLanguageOption2<bool>(
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Options\OptionKeyTests.cs (1)
88var option2 = new PerLanguageOption2<bool>(name: "name", defaultValue: false);
WorkspaceServiceTests\GlobalOptionServiceTests.cs (1)
273var 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);
244 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.EditorFeatures.UnitTests (4)
QualifyMemberAccessTests.cs (4)
30private Task TestAsyncWithOption(string code, string expected, PerLanguageOption2<CodeStyleOption2<bool>> option) 33private Task TestAsyncWithOptionAndNotificationOption(string code, string expected, PerLanguageOption2<CodeStyleOption2<bool>> option, NotificationOption2 notification) 36private Task TestMissingAsyncWithOption(string code, PerLanguageOption2<CodeStyleOption2<bool>> option) 39private Task TestMissingAsyncWithOptionAndNotificationOption(string code, PerLanguageOption2<CodeStyleOption2<bool>> option, NotificationOption2 notification)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CSharpCodeFixOptionsProvider.cs (1)
83private TValue GetOption<TValue>(PerLanguageOption2<TValue> option, TValue defaultValue)
Microsoft.CodeAnalysis.EditorFeatures (45)
AddImportOnPaste\AddImportOnPasteOptionsStorage.cs (1)
17public static readonly PerLanguageOption2<bool> AddImportsOnPaste = new("dotnet_add_imports_on_paste", defaultValue: true);
Diagnostics\DiagnosticsClassificationTaggerProvider.cs (1)
79if (IDEDiagnosticIdToOptionMappingHelper.TryGetMappedFadingOption(data.Id, out var fadingOption))
EditorConfigSettings\Data\CodeStyleSetting.cs (2)
75PerLanguageOption2<CodeStyleOption2<bool>> option, 109PerLanguageOption2<CodeStyleOption2<T>> option,
EditorConfigSettings\Data\Setting.cs (1)
55PerLanguageOption2<TValue> option,
ExtractMethod\ExtractMethodPresentationOptionsStorage.cs (1)
11public 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\InlineHintsOptionsStorage.cs (12)
44public static readonly PerLanguageOption2<bool> EnabledForParameters = 48public static readonly PerLanguageOption2<bool> ForLiteralParameters = 52public static readonly PerLanguageOption2<bool> ForIndexerParameters = 56public static readonly PerLanguageOption2<bool> ForObjectCreationParameters = 60public static readonly PerLanguageOption2<bool> ForOtherParameters = 64public static readonly PerLanguageOption2<bool> SuppressForParametersThatDifferOnlyBySuffix = 68public static readonly PerLanguageOption2<bool> SuppressForParametersThatMatchMethodIntent = 72public static readonly PerLanguageOption2<bool> SuppressForParametersThatMatchArgumentName = 78public static readonly PerLanguageOption2<bool> EnabledForTypes = 82public static readonly PerLanguageOption2<bool> ForImplicitVariableTypes = 86public static readonly PerLanguageOption2<bool> ForLambdaParameterTypes = 90public static readonly PerLanguageOption2<bool> ForImplicitObjectCreation =
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)
25private static readonly PerLanguageOption2<bool> s_generateOperators = new( 29private static readonly PerLanguageOption2<bool> s_implementIEquatable = new( 33internal 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)
73/// <remarks>All values must either be an <see cref="Option2{T}"/> or a <see cref="PerLanguageOption2{T}"/>.</remarks>
Tagging\AbstractAsynchronousTaggerProvider.TagSource.cs (1)
313Contract.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)
391return _dataSource.Options.OfType<PerLanguageOption2<bool>>().Any(option => languageName == null || !_dataSource.GlobalOptions.GetOption(option, languageName));
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (14)
CodeActions\AbstractCodeActionOrUserDiagnosticTest_OptionHelpers.cs (7)
16internal (OptionKey2, object?) SingleOption<T>(PerLanguageOption2<T> option, T value) 25internal (OptionKey2, object) SingleOption<T>(PerLanguageOption2<CodeStyleOption2<T>> option, T enabled, NotificationOption2 notification) 28internal (OptionKey2, object) SingleOption<T>(PerLanguageOption2<CodeStyleOption2<T>> option, CodeStyleOption2<T> codeStyle) 31internal static (OptionKey2, object) SingleOption<T>(PerLanguageOption2<CodeStyleOption2<T>> option, CodeStyleOption2<T> codeStyle, string language) 40internal OptionsCollection Option<T>(PerLanguageOption2<CodeStyleOption2<T>> option, T enabled, NotificationOption2 notification) 46internal OptionsCollection Option<T>(PerLanguageOption2<T> option, T value) 49internal OptionsCollection Option<T>(PerLanguageOption2<CodeStyleOption2<T>> option, CodeStyleOption2<T> codeStyle)
Diagnostics\ParenthesesOptionsProvider.cs (7)
32private static IEnumerable<PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>>> GetAllExceptOtherParenthesesOptions() 48private static IEnumerable<PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>>> GetAllParenthesesOptions() 56foreach (var option in GetAllParenthesesOptions()) 70foreach (var option in GetAllParenthesesOptions()) 84foreach (var option in GetAllExceptOtherParenthesesOptions()) 94private OptionsCollection GetSingleRequireOption(PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> option) 97foreach (var o in GetAllParenthesesOptions())
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
Diagnostics\DiagnosticsClassificationTaggerProviderTests.cs (2)
136var fadingOption = GetFadingOptionForDiagnostic(diagnosticId); 169private static PerLanguageOption2<bool> GetFadingOptionForDiagnostic(string diagnosticId)
Options\GlobalOptionsTests.cs (2)
69public T GetOption<T>(PerLanguageOption2<T> option, string languageName) 93public void SetGlobalOption<T>(PerLanguageOption2<T> option, string language, T value)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
InlineHints\InlineHintsViewOptionsStorage.cs (1)
14public static readonly PerLanguageOption2<bool> ColorHints = new(
Microsoft.CodeAnalysis.ExternalAccess.Razor (2)
RazorGlobalOptions.cs (2)
58public T GetOption<T>(PerLanguageOption2<T> option, string languageName) 67public void SetGlobalOption<T>(PerLanguageOption2<T> option, string language, T value) => throw new NotImplementedException();
Microsoft.CodeAnalysis.Features (13)
AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer.cs (7)
42PerLanguageOption2<bool>? fadingOption, 74PerLanguageOption2<bool>? fadingOption, 88protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableArray<DiagnosticDescriptor> descriptors, PerLanguageOption2<bool> fadingOption) 103protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableDictionary<DiagnosticDescriptor, IOption2> supportedDiagnosticsWithOptions, PerLanguageOption2<bool>? fadingOption) 112protected AbstractBuiltInUnnecessaryCodeStyleDiagnosticAnalyzer(ImmutableDictionary<DiagnosticDescriptor, ImmutableHashSet<IOption2>> supportedDiagnosticsWithOptions, PerLanguageOption2<bool>? fadingOption) 118private static void AddDiagnosticIdToFadingOptionMapping(string diagnosticId, PerLanguageOption2<bool>? fadingOption) 126private static void AddDescriptorsToFadingOptionMapping(IEnumerable<DiagnosticDescriptor> descriptors, PerLanguageOption2<bool>? fadingOption)
AbstractUseConditionalExpressionDiagnosticAnalyzer.cs (1)
25PerLanguageOption2<CodeStyleOption2<bool>> option)
AnalyzerOptionsProvider.cs (1)
104private TValue GetOption<TValue>(PerLanguageOption2<TValue> option, TValue defaultValue)
IDEDiagnosticIdToOptionMappingHelper.cs (4)
25private static readonly ConcurrentDictionary<string, PerLanguageOption2<bool>> s_diagnosticIdToFadingOptionMap = new(); 32public static bool TryGetMappedFadingOption(string diagnosticId, [NotNullWhen(true)] out PerLanguageOption2<bool>? fadingOption) 94public static void AddFadingOptionMapping(string diagnosticId, PerLanguageOption2<bool> fadingOption) 101Debug.Assert(!s_diagnosticIdToFadingOptionMap.TryGetValue(diagnosticId, out var existingOption) || existingOption.Equals(fadingOption));
Microsoft.CodeAnalysis.LanguageServer.Protocol (55)
ExternalAccess\VSMac\CompletionOptionsAccessor.cs (3)
12public static PerLanguageOption2<bool?> ShowItemsFromUnimportedNamespaces 15public static PerLanguageOption2<bool> TriggerOnTypingLetters 18public static PerLanguageOption2<bool?> TriggerOnDeletion
ExternalAccess\VSMac\SolutionCrawlerOptionsAccessor.cs (1)
18public static PerLanguageOption2<BackgroundAnalysisScope> BackgroundAnalysisScopeOption
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 (12)
32public static readonly PerLanguageOption2<bool> ShowBlockStructureGuidesForCommentsAndPreprocessorRegions = new( 35public static readonly PerLanguageOption2<bool> ShowBlockStructureGuidesForDeclarationLevelConstructs = new( 38public static readonly PerLanguageOption2<bool> ShowBlockStructureGuidesForCodeLevelConstructs = new( 41public static readonly PerLanguageOption2<bool> ShowOutliningForCommentsAndPreprocessorRegions = new( 44public static readonly PerLanguageOption2<bool> ShowOutliningForDeclarationLevelConstructs = new( 47public static readonly PerLanguageOption2<bool> ShowOutliningForCodeLevelConstructs = new( 50public static readonly PerLanguageOption2<bool> CollapseRegionsWhenFirstOpened = new( 53public static readonly PerLanguageOption2<bool> CollapseImportsWhenFirstOpened = new( 56public static readonly PerLanguageOption2<bool> CollapseSourceLinkEmbeddedDecompiledFilesWhenFirstOpened = new( 59public static readonly PerLanguageOption2<bool> CollapseMetadataSignatureFilesWhenFirstOpened = new( 62public static readonly PerLanguageOption2<bool> CollapseRegionsWhenCollapsingToDefinitions = new( 65public static readonly PerLanguageOption2<int> MaximumBannerLength = new(
Features\Options\ClassificationOptionsStorage.cs (3)
20public static PerLanguageOption2<bool> ClassifyReassignedVariables = 23public static PerLanguageOption2<bool> ColorizeRegexPatterns = 26public static PerLanguageOption2<bool> ColorizeJsonPatterns =
Features\Options\CodeActionOptionsStorage.cs (2)
21public static readonly PerLanguageOption2<int> WrappingColumn = 44public static readonly PerLanguageOption2<int> ConditionalExpressionWrappingLength = new(
Features\Options\CompletionOptionsStorage.cs (12)
39public static readonly PerLanguageOption2<bool> HideAdvancedMembers = new("dotnet_hide_advanced_members_in_completion", CompletionOptions.Default.HideAdvancedMembers, group: s_completionOptionGroup); 40public static readonly PerLanguageOption2<bool> TriggerOnTyping = new("dotnet_trigger_completion_on_typing", CompletionOptions.Default.TriggerOnTyping, group: s_completionOptionGroup); 41public static readonly PerLanguageOption2<bool> TriggerOnTypingLetters = new("dotnet_trigger_completion_on_typing_letters", CompletionOptions.Default.TriggerOnTypingLetters, group: s_completionOptionGroup); 42public static readonly PerLanguageOption2<bool?> TriggerOnDeletion = new("dotnet_trigger_completion_on_deletion", CompletionOptions.Default.TriggerOnDeletion, group: s_completionOptionGroup); 43public static readonly PerLanguageOption2<EnterKeyRule> EnterKeyBehavior = new("dotnet_return_key_completion_behavior", CompletionOptions.Default.EnterKeyBehavior, serializer: EditorConfigValueSerializer.CreateSerializerForEnum<EnterKeyRule>(), group: s_completionOptionGroup); 44public static readonly PerLanguageOption2<SnippetsRule> SnippetsBehavior = new("dotnet_snippets_behavior", CompletionOptions.Default.SnippetsBehavior, serializer: EditorConfigValueSerializer.CreateSerializerForEnum<SnippetsRule>(), group: s_completionOptionGroup); 45public static readonly PerLanguageOption2<bool> ShowNameSuggestions = new("dotnet_show_name_completion_suggestions", CompletionOptions.Default.ShowNameSuggestions, group: s_completionOptionGroup); 50public static readonly PerLanguageOption2<bool?> ShowItemsFromUnimportedNamespaces = new("dotnet_show_completion_items_from_unimported_namespaces", CompletionOptions.Default.ShowItemsFromUnimportedNamespaces, group: s_completionOptionGroup); 52public static readonly PerLanguageOption2<bool> TriggerInArgumentLists = new("dotnet_trigger_completion_in_argument_lists", CompletionOptions.Default.TriggerInArgumentLists, group: s_completionOptionGroup); 59public static PerLanguageOption2<bool> ProvideRegexCompletions = new("dotnet_provide_regex_completions", CompletionOptions.Default.ProvideRegexCompletions, group: s_completionOptionGroup); 60public static readonly PerLanguageOption2<bool> ProvideDateAndTimeCompletions = new("dotnet_provide_date_and_time_completions", CompletionOptions.Default.ProvideDateAndTimeCompletions, group: s_completionOptionGroup); 61public static readonly PerLanguageOption2<bool?> ShowNewSnippetExperienceUserOption = new("dotnet_show_new_snippet_experience", CompletionOptions.Default.ShowNewSnippetExperienceUserOption, group: s_completionOptionGroup);
Features\Options\DocumentationCommentOptionsStorage.cs (1)
22public static readonly PerLanguageOption2<bool> AutoXmlDocCommentGeneration = new(
Features\Options\ExtractMethodOptionsStorage.cs (1)
36public static readonly PerLanguageOption2<bool> DontPutOutOrRefOnStruct = new(
Features\Options\HighlightingOptionsStorage.cs (2)
20public static PerLanguageOption2<bool> HighlightRelatedRegexComponentsUnderCursor = 25public static PerLanguageOption2<bool> HighlightRelatedJsonComponentsUnderCursor =
Features\Options\IdeAnalyzerOptionsStorage.cs (4)
41public static PerLanguageOption2<bool> ReportInvalidPlaceholdersInStringDotFormatCalls = new( 44public static PerLanguageOption2<bool> ReportInvalidRegexPatterns = new( 47public static PerLanguageOption2<bool> ReportInvalidJsonPatterns = new( 50public static PerLanguageOption2<bool> DetectAndOfferEditorFeaturesForProbableJsonStrings = new(
Features\Options\ImplementTypeOptionsStorage.cs (2)
25public static readonly PerLanguageOption2<ImplementTypeInsertionBehavior> InsertionBehavior = 29public static readonly PerLanguageOption2<ImplementTypePropertyGenerationBehavior> PropertyGenerationBehavior =
Features\Options\IndentationOptionsStorage.cs (1)
25public static PerLanguageOption2<FormattingOptions2.IndentStyle> SmartIndent => FormattingOptions2.SmartIndent;
Features\Options\QuickInfoOptionsStorage.cs (1)
20public static readonly PerLanguageOption2<bool> ShowRemarksInQuickInfo = new(
Features\Options\SolutionCrawlerOptionsStorage.cs (3)
16public static readonly PerLanguageOption2<BackgroundAnalysisScope> BackgroundAnalysisScopeOption = new( 28public static readonly PerLanguageOption2<CompilerDiagnosticsScope> CompilerDiagnosticsScopeOption = new( 31public static readonly PerLanguageOption2<bool> RemoveDocumentDiagnosticsOnDocumentClose = new(
Features\Options\SymbolSearchOptionsStorage.cs (2)
20public static PerLanguageOption2<bool> SearchReferenceAssemblies = 25public static PerLanguageOption2<bool> SearchNuGetPackages =
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (1)
501if (IDEDiagnosticIdToOptionMappingHelper.TryGetMappedFadingOption(diagnosticData.Id, out var fadingOption))
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
AutomaticInsertionOfAbstractOrInterfaceMembers\AutomaticInsertionOfAbstractOrInterfaceMembersOptionsStorage.vb (1)
10Public Shared ReadOnly AutomaticInsertionOfAbstractOrInterfaceMembers As PerLanguageOption2(Of Boolean) = New PerLanguageOption2(Of Boolean)(
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (4)
QualifyMemberAccessTests.vb (4)
22Private Function TestAsyncWithOption(code As String, expected As String, opt As PerLanguageOption2(Of CodeStyleOption2(Of Boolean))) As Task 26Private Function TestAsyncWithOptionAndNotification(code As String, expected As String, opt As PerLanguageOption2(Of CodeStyleOption2(Of Boolean)), notification As NotificationOption2) As Task 30Private Function TestMissingAsyncWithOption(code As String, opt As PerLanguageOption2(Of CodeStyleOption2(Of Boolean))) As Task 34Private Function TestMissingAsyncWithOptionAndNotification(code As String, opt As PerLanguageOption2(Of CodeStyleOption2(Of Boolean)), notification As NotificationOption2) As Task
Microsoft.CodeAnalysis.Workspaces (67)
CodeFixOptionsProvider.cs (1)
61private TValue GetOption<TValue>(PerLanguageOption2<TValue> option, TValue defaultValue)
CodeStyleHelpers.cs (2)
141public static PerLanguageOption2<CodeStyleOption2<T>> CreatePerLanguageEditorConfigOption<T>( 148var option = new PerLanguageOption2<CodeStyleOption2<T>>(name, defaultValue, group, isEditorConfigOption: true, serializer: (serializerFactory ?? EditorConfigValueSerializer.CodeStyle).Invoke(defaultValue));
CodeStyleOptions2.cs (34)
22private static PerLanguageOption2<CodeStyleOption2<T>> CreatePerLanguageOption<T>( 34private static PerLanguageOption2<CodeStyleOption2<bool>> CreateQualifyAccessOption(string name) 40public static readonly PerLanguageOption2<CodeStyleOption2<bool>> QualifyFieldAccess = CreateQualifyAccessOption( 47public static readonly PerLanguageOption2<CodeStyleOption2<bool>> QualifyPropertyAccess = CreateQualifyAccessOption( 54public static readonly PerLanguageOption2<CodeStyleOption2<bool>> QualifyMethodAccess = CreateQualifyAccessOption( 61public static readonly PerLanguageOption2<CodeStyleOption2<bool>> QualifyEventAccess = CreateQualifyAccessOption( 68public static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferIntrinsicPredefinedTypeKeywordInDeclaration = CreatePerLanguageOption( 77public static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferIntrinsicPredefinedTypeKeywordInMemberAccess = CreatePerLanguageOption( 83internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferObjectInitializer = CreatePerLanguageOption( 88internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferCollectionInitializer = CreatePerLanguageOption( 93internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferSimplifiedBooleanExpressions = CreatePerLanguageOption( 106internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferCoalesceExpression = CreatePerLanguageOption( 111internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferNullPropagation = CreatePerLanguageOption( 116internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferExplicitTupleNames = CreatePerLanguageOption( 121internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferAutoProperties = CreatePerLanguageOption( 126internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferInferredTupleNames = CreatePerLanguageOption( 131internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferInferredAnonymousTypeMemberNames = CreatePerLanguageOption( 136internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferIsNullCheckOverReferenceEqualityMethod = CreatePerLanguageOption( 141internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferConditionalExpressionOverAssignment = CreatePerLanguageOption( 146internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferConditionalExpressionOverReturn = CreatePerLanguageOption( 151internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferCompoundAssignment = CreatePerLanguageOption( 156internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferSimplifiedInterpolation = CreatePerLanguageOption( 168internal static readonly PerLanguageOption2<CodeStyleOption2<UnusedParametersPreference>> UnusedParameters = CreatePerLanguageOption( 198internal static readonly PerLanguageOption2<CodeStyleOption2<AccessibilityModifiersRequired>> AccessibilityModifiersRequired = CreatePerLanguageOption( 218internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferReadonly = CreatePerLanguageOption( 242private static PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> CreateParenthesesOption(CodeStyleOption2<ParenthesesPreference> defaultValue, string name) 265internal static readonly PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> ArithmeticBinaryParentheses = 270internal static readonly PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> OtherBinaryParentheses = 275internal static readonly PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> RelationalBinaryParentheses = 280internal static readonly PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> OtherParentheses = 316internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferSystemHashCode = new( 321public static readonly PerLanguageOption2<CodeStyleOption2<bool>> PreferNamespaceAndFolderMatchStructure = CreatePerLanguageOption( 326internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> AllowMultipleBlankLines = CreatePerLanguageOption( 331internal static readonly PerLanguageOption2<CodeStyleOption2<bool>> AllowStatementImmediatelyAfterBlock = CreatePerLanguageOption(
FadingOptions.cs (2)
12public static readonly PerLanguageOption2<bool> FadeOutUnusedImports = new("dotnet_fade_out_unused_imports", defaultValue: true); 13public static readonly PerLanguageOption2<bool> FadeOutUnreachableCode = new("dotnet_fade_out_unreachable_code", defaultValue: true);
FormattingOptions2.cs (5)
27public static PerLanguageOption2<bool> UseTabs = new PerLanguageOption2<bool>( 32public static PerLanguageOption2<int> TabSize = new PerLanguageOption2<int>( 36public static PerLanguageOption2<int> IndentationSize = new PerLanguageOption2<int>( 40public static PerLanguageOption2<string> NewLine = new PerLanguageOption2<string>( 62public static PerLanguageOption2<IndentStyle> SmartIndent = new PerLanguageOption2<IndentStyle>(
GenerationOptions.cs (2)
15public static readonly PerLanguageOption2<bool> PlaceSystemNamespaceFirst = new( 21public static readonly PerLanguageOption2<bool> SeparateImportDirectiveGroups = new(
IOptionReader.cs (3)
43public static T GetOption<T>(this IOptionsReader options, PerLanguageOption2<T> option, string language) 46public static T GetOption<T>(this IOptionsReader options, PerLanguageOption2<T> option, string language, T defaultValue) 52public static T GetOptionValue<T>(this IOptionsReader options, PerLanguageOption2<CodeStyleOption2<T>> option, string language, T defaultValue)
IPublicOption.cs (1)
11/// to distinguish them from internal ones (<see cref="Option2{T}"/> and <see cref="PerLanguageOption2{T}"/>).
NamingStyleOptions.cs (1)
24internal static PerLanguageOption2<NamingStylePreferences> NamingPreferences { get; } = new(
Options\GlobalOptionService.cs (2)
113public T GetOption<T>(PerLanguageOption2<T> option, string language) 164public void SetGlobalOption<T>(PerLanguageOption2<T> option, string language, T value)
Options\IGlobalOptionService.cs (2)
25T GetOption<T>(PerLanguageOption2<T> option, string language); 40void SetGlobalOption<T>(PerLanguageOption2<T> option, string language, T value);
Options\PerLanguageOption.cs (1)
14/// <inheritdoc cref="PerLanguageOption2{T}"/>
PerLanguageOption2.cs (1)
12/// Marker interface for <see cref="PerLanguageOption2{T}"/>.
PublicOptionFactory.cs (8)
78public static PerLanguageOption2<T> WithPublicOption<T, TPublicValue>(this PerLanguageOption2<T> option, string feature, string name, Func<T, TPublicValue> toPublicValue, Func<TPublicValue, T> toInternalValue) 93public static PerLanguageOption2<T> WithPublicOption<T>(this PerLanguageOption2<T> option, string feature, string name) 96public static PerLanguageOption2<CodeStyleOption2<T>> WithPublicOption<T>(this PerLanguageOption2<CodeStyleOption2<T>> option, string feature, string name) 105public static PerLanguageOption<T> ToPublicOption<T>(this PerLanguageOption2<T> option) 117public static PerLanguageOption<CodeStyleOption<T>> ToPublicOption<T>(this PerLanguageOption2<CodeStyleOption2<T>> option)
Recommendations\RecommendationOptions.cs (2)
20public static readonly PerLanguageOption2<bool> HideAdvancedMembers = new PerLanguageOption2<bool>( 24public static readonly PerLanguageOption2<bool> FilterOutOfScopeLocals = new PerLanguageOption2<bool>(
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
OptionsCollection.cs (3)
55public void Add<T>(PerLanguageOption2<T> option, T value) 58public void Add<T>(PerLanguageOption2<CodeStyleOption2<T>> option, T value) 61public void Add<T>(PerLanguageOption2<CodeStyleOption2<T>> option, T value, NotificationOption2 notification)
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
Options\OptionKeyTests.cs (2)
88var option2 = new PerLanguageOption2<bool>(name: "name", defaultValue: false); 170var option = CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess;
WorkspaceServiceTests\GlobalOptionServiceTests.cs (1)
273var perLanguageOption2 = new PerLanguageOption2<CodeStyleOption2<bool>>("test", new CodeStyleOption2<bool>(false, NotificationOption2.Warning)).WithPublicOption("test", "test");
Microsoft.VisualStudio.LanguageServices (3)
SymbolSearch\AbstractDelayStartedService.cs (2)
44private readonly ImmutableArray<PerLanguageOption2<bool>> _perLanguageOptions; 58ImmutableArray<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)
Microsoft.VisualStudio.LanguageServices.Implementation (16)
Options\AbstractAutomationObject.cs (6)
20private protected T GetOption<T>(PerLanguageOption2<T> option) 23private protected void SetOption<T>(PerLanguageOption2<T> option, T value) 42private protected int GetBooleanOption(PerLanguageOption2<bool?> key) 45private protected void SetBooleanOption(PerLanguageOption2<bool?> key, int value) 57private protected string GetXmlOption<T>(PerLanguageOption2<CodeStyleOption2<T>> option) 66private protected void SetXmlOption<T>(PerLanguageOption2<CodeStyleOption2<T>> option, string value)
Options\AbstractOptionPageControl.cs (5)
99private protected void BindToOption(CheckBox checkbox, PerLanguageOption2<bool> optionKey, string languageName) 114private protected void BindToOption(CheckBox checkbox, PerLanguageOption2<bool?> nullableOptionKey, string languageName, Func<bool> onNullValue) 143private protected void BindToOption(TextBox textBox, PerLanguageOption2<int> optionKey, string languageName) 175private protected void BindToOption<T>(ComboBox comboBox, PerLanguageOption2<T> optionKey, string languageName, ContentControl label = null) 194private protected void BindToOption<T>(RadioButton radiobutton, PerLanguageOption2<T> optionKey, T optionValue, string languageName)
Options\AbstractOptionPreviewViewModel.cs (1)
212PerLanguageOption2<CodeStyleOption2<ParenthesesPreference>> languageOption,
Options\OptionStore.cs (2)
65public T GetOption<T>(PerLanguageOption2<T> option, string language) 94public void SetOption<T>(PerLanguageOption2<T> option, string language, T value)
Options\PerLanguageOptionBinding.cs (2)
15private readonly PerLanguageOption2<T> _option; 20public PerLanguageOptionBinding(OptionStore optionStore, PerLanguageOption2<T> option, string languageName)
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (1)
InProcess\StateResetInProcess.cs (1)
80static void ResetPerLanguageOption<T>(IGlobalOptionService globalOptions, PerLanguageOption2<T> option)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
Options\AutomationObject\AutomationObject.vb (2)
19Private Overloads Function GetBooleanOption(key As PerLanguageOption2(Of Boolean)) As Boolean 27Private Overloads Sub SetBooleanOption(key As PerLanguageOption2(Of Boolean), value As Boolean)
Roslyn.VisualStudio.DiagnosticsWindow (2)
OptionPages\InternalOptionsControl.cs (2)
203BindToOption(checkBox, (PerLanguageOption2<bool>)option, languageName); 214BindToOption(textBox, (PerLanguageOption2<int>)option, languageName);