28 references to OptionKey2
Microsoft.CodeAnalysis.EditorFeatures (4)
EditorConfigSettings\Data\CodeStyleSetting.cs (2)
61var optionKey = new OptionKey2(option); 102var optionKey = new OptionKey2(option);
EditorConfigSettings\Data\Setting.cs (2)
48var optionKey = new OptionKey2(option); 76var optionKey = new OptionKey2(option);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Options\GlobalOptionsTests.cs (1)
61=> GetOption<T>(new OptionKey2(option));
Microsoft.CodeAnalysis.Workspaces (6)
Options\GlobalOptionService.cs (2)
63=> GetOption<T>(new OptionKey2(option)); 137=> SetGlobalOption(new OptionKey2(option), value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\IOptionReader.cs (3)
29=> options.TryGetOption<T>(new OptionKey2(option), out var value) ? value! : option.DefaultValue; 32=> options.TryGetOption<T>(new OptionKey2(option), out var value) ? value! : defaultValue; 44=> options.TryGetOption<CodeStyleOption2<T>>(new OptionKey2(option), out var style) ? style!.Value : defaultValue;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\Option2.cs (1)
106=> new(option);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
OptionsCollection.cs (3)
45=> _options[new OptionKey2(option)] = value; 48=> Add(new OptionKey2(option), value); 54=> Add(new OptionKey2(option), new CodeStyleOption2<T>(value, notification));
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
WorkspaceServiceTests\GlobalOptionServiceTests.cs (8)
177var values = globalOptions.GetOptions([new OptionKey2(option1), new OptionKey2(option2)]); 183KeyValuePair.Create(new OptionKey2(option1), (object?)5), 184KeyValuePair.Create(new OptionKey2(option2), (object?)6), 185KeyValuePair.Create(new OptionKey2(option3), (object?)3), 194values = globalOptions.GetOptions([new OptionKey2(option1), new OptionKey2(option2), new OptionKey2(option3)]);
Microsoft.VisualStudio.LanguageServices (5)
EditorConfigSettings\Whitespace\ViewModel\OperatorPlacementWhenWrappingViewModel.cs (1)
26_key = new OptionKey2(CodeStyleOptions2.OperatorPlacementWhenWrapping);
KeybindingReset\KeybindingResetDetector.cs (4)
62private static readonly ImmutableArray<OptionKey2> s_statusOptions = [new OptionKey2(KeybindingResetOptionsStorage.ReSharperStatus), new OptionKey2(KeybindingResetOptionsStorage.NeedsReset)]; 228KeyValuePair.Create(new OptionKey2(KeybindingResetOptionsStorage.ReSharperStatus), (object)currentStatus), 229KeyValuePair.Create(new OptionKey2(KeybindingResetOptionsStorage.NeedsReset), (object)needsReset),
Roslyn.VisualStudio.Next.UnitTests (1)
Options\VisualStudioSettingsOptionPersisterTests.cs (1)
115var optionKey = new OptionKey2(CSharpFormattingOptions2.NewLineBeforeOpenBrace);