6 implementations of IsPerLanguage
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Completion\CompletionServiceTests.cs (1)
96public bool IsPerLanguage => true;
Microsoft.CodeAnalysis.Workspaces (4)
Option2.cs (1)
85bool IOption.IsPerLanguage => false;
Options\Option.cs (1)
84bool IOption.IsPerLanguage => false;
Options\PerLanguageOption.cs (1)
80bool IOption.IsPerLanguage => true;
PerLanguageOption2.cs (1)
73bool IOption.IsPerLanguage => true;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Options\TestOption.cs (1)
17public bool IsPerLanguage { get; set; }
29 references to IsPerLanguage
Microsoft.CodeAnalysis.EditorFeatures (2)
EditorConfigSettings\Data\TieredAnalyzerConfigOptions.cs (1)
40initialValue = GlobalOptions.GetOption<TValue>(new OptionKey2(option, option.IsPerLanguage ? Language : null))!;
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (1)
89else if (option.IsPerLanguage)
Microsoft.CodeAnalysis.Features (4)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
369builder.Add((option.Definition.ConfigName, optionValue, option.IsPerLanguage));
CodeFixes\Configuration\ConfigureCodeStyle\ConfigureCodeStyleOptionCodeFixProvider.cs (1)
153solution => ConfigurationUpdater.ConfigureCodeStyleOptionAsync(optionName, optionValue, diagnostic, option.IsPerLanguage, project, cancellationToken),
IDEDiagnosticIdToOptionMappingHelper.cs (2)
44var groups = options.GroupBy(o => o.IsPerLanguage); 52Debug.Assert(perLanguageValuedOption.IsPerLanguage);
Microsoft.CodeAnalysis.Workspaces (8)
OptionKey2.cs (4)
23Debug.Assert(option.IsPerLanguage == language is not null); 31Debug.Assert(option.IsPerLanguage); 43Debug.Assert(!option.IsPerLanguage); 76var languageDisplay = Option.IsPerLanguage
Options\EditorConfig\EditorConfigFileGenerator.cs (1)
67var optionKey = new OptionKey2(option, option.IsPerLanguage ? language : null);
Options\OptionKey.cs (3)
28if (language != null && !option.IsPerLanguage) 33if (language == null && option.IsPerLanguage) 84var languageDisplay = Option.IsPerLanguage
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Options\OptionsTestHelpers.cs (1)
116=> option.IsPerLanguage ? new[] { LanguageNames.CSharp, LanguageNames.VisualBasic } : new string?[] { null };
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Simplifier\SimplifierTests.cs (1)
116var languages = option.IsPerLanguage ? new[] { LanguageNames.CSharp, LanguageNames.VisualBasic } : new string?[] { null };
Microsoft.VisualStudio.IntegrationTest.Utilities (1)
InProcess\VisualStudioWorkspace_InProc.cs (1)
133if (option.IsPerLanguage)
Microsoft.VisualStudio.LanguageServices.Implementation (7)
Options\AbstractOptionPreviewViewModel.cs (1)
91OptionStore.SetOption(option, option.IsPerLanguage ? Language : null, actualValue);
Options\CheckBoxEnumFlagsViewModel.cs (1)
53var flags = optionStore.GetOption<TOptionValue>(option, option.IsPerLanguage ? info.Language : null);
Options\CheckBoxViewModel.cs (1)
21SetProperty(ref _isChecked, optionStore.GetOption<bool>(option, option.IsPerLanguage ? info.Language : null));
Options\OptionStore.cs (2)
70Debug.Assert(option.IsPerLanguage == language is not null); 99Debug.Assert(option.IsPerLanguage == language is not null);
Options\Style\BooleanCodeStyleOptionViewModel.cs (1)
41var codeStyleOption = optionStore.GetOption<CodeStyleOption2<bool>>(option, option.IsPerLanguage ? info.Language : null);
Options\Style\EnumCodeStyleOptionViewModel.cs (1)
55var codeStyleOption = optionStore.GetOption<CodeStyleOption2<T>>(option, option.IsPerLanguage ? info.Language : null);
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (1)
Options\GlobalOptionsTest.cs (1)
68foreach (var language in option.IsPerLanguage ? allLanguages : noLanguages)
Roslyn.VisualStudio.DiagnosticsWindow (1)
OptionPages\InternalOptionsControl.cs (1)
114if (!option.IsPerLanguage)
Roslyn.VisualStudio.Next.UnitTests (3)
Options\VisualStudioOptionStorageTests.cs (3)
32.Where(pair => pair.Value.Option.IsPerLanguage) 78Assert.True(info.Option.IsPerLanguage); 162Assert.Equal(option.IsPerLanguage, storage.IsPerLanguage);