36 references to OptionKey2
Microsoft.CodeAnalysis.EditorFeatures (4)
EditorConfigSettings\Data\CodeStyleSetting.cs (2)
62var optionKey = new OptionKey2(option); 103var optionKey = new OptionKey2(option);
EditorConfigSettings\Data\Setting.cs (2)
49var optionKey = new OptionKey2(option); 77var optionKey = new OptionKey2(option);
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (3)
CodeActions\AbstractCodeActionOrUserDiagnosticTest_OptionHelpers.cs (3)
14=> (new OptionKey2(option), enabled); 20=> (new OptionKey2(option), new CodeStyleOption2<T>(enabled, notification)); 23=> (new OptionKey2(option), codeStyle);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Options\GlobalOptionsTests.cs (1)
67=> GetOption<T>(new OptionKey2(option));
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
InlineHints\InlineHintsKeyProcessorProvider.cs (1)
119_globalOptions.RefreshOption(new OptionKey2(InlineHintsGlobalStateOption.DisplayAllOverride), on);
Microsoft.CodeAnalysis.Workspaces (6)
IOptionReader.cs (3)
38=> options.TryGetOption<T>(new OptionKey2(option), out var value) ? value! : option.DefaultValue; 41=> options.TryGetOption<T>(new OptionKey2(option), out var value) ? value! : defaultValue; 50=> options.TryGetOption<CodeStyleOption2<T>>(new OptionKey2(option), out var style) ? style!.Value : defaultValue;
Option2.cs (1)
107=> new(option);
Options\GlobalOptionService.cs (2)
111=> GetOption<T>(new OptionKey2(option)); 162=> SetGlobalOption(new OptionKey2(option), value);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
OptionsCollection.cs (3)
44=> _options[new OptionKey2(option)] = value; 47=> Add(new OptionKey2(option), value); 53=> Add(new OptionKey2(option), new CodeStyleOption2<T>(value, notification));
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
WorkspaceServiceTests\GlobalOptionServiceTests.cs (8)
180var values = globalOptions.GetOptions(ImmutableArray.Create(new OptionKey2(option1), new OptionKey2(option2))); 185KeyValuePairUtil.Create(new OptionKey2(option1), (object?)5), 186KeyValuePairUtil.Create(new OptionKey2(option2), (object?)6), 187KeyValuePairUtil.Create(new OptionKey2(option3), (object?)3))); 195values = globalOptions.GetOptions(ImmutableArray.Create(new OptionKey2(option1), new OptionKey2(option2), new OptionKey2(option3)));
Microsoft.VisualStudio.LanguageServices (7)
EditorConfigSettings\Whitespace\ViewModel\OperatorPlacementWhenWrappingViewModel.cs (1)
27_key = new OptionKey2(CodeStyleOptions2.OperatorPlacementWhenWrapping);
KeybindingReset\KeybindingResetDetector.cs (4)
63new OptionKey2(KeybindingResetOptionsStorage.ReSharperStatus), 64new OptionKey2(KeybindingResetOptionsStorage.NeedsReset)); 221KeyValuePairUtil.Create(new OptionKey2(KeybindingResetOptionsStorage.ReSharperStatus), (object)currentStatus), 222KeyValuePairUtil.Create(new OptionKey2(KeybindingResetOptionsStorage.NeedsReset), (object)needsReset)));
Options\PackageSettingsPersister.cs (2)
46_optionService.RefreshOption(new OptionKey2(SolutionCrawlerOptionsStorage.SolutionBackgroundAnalysisScopeOption), _lazyRoslynPackage.AnalysisScope); 53_optionService.RefreshOption(new OptionKey2(SolutionCrawlerOptionsStorage.SolutionBackgroundAnalysisScopeOption), _lazyRoslynPackage.AnalysisScope);
Microsoft.VisualStudio.LanguageServices.Implementation (2)
Options\OptionStore.cs (2)
63=> (T)GetOption(new OptionKey2(option))!; 92=> SetOption(new OptionKey2(option), value);
Roslyn.VisualStudio.Next.UnitTests (1)
Options\VisualStudioSettingsOptionPersisterTests.cs (1)
126var optionKey = new OptionKey2(CSharpFormattingOptions2.NewLineBeforeOpenBrace);