23 references to OptionKey2
Microsoft.CodeAnalysis.EditorFeatures (3)
EditorConfigSettings\Data\CodeStyleSetting.cs (2)
82var optionKey = new OptionKey2(option, options.Language); 117var optionKey = new OptionKey2(option, options.Language);
EditorConfigSettings\Data\Setting.cs (1)
62var optionKey = new OptionKey2(option, LanguageNames.CSharp);
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (5)
CodeActions\AbstractCodeActionOrUserDiagnosticTest_OptionHelpers.cs (4)
17=> (new OptionKey2(option, this.GetLanguage()), value); 26=> (new OptionKey2(option, this.GetLanguage()), new CodeStyleOption2<T>(enabled, notification)); 29=> (new OptionKey2(option, this.GetLanguage()), codeStyle); 32=> (new OptionKey2(option, language), codeStyle);
NamingStyles\NamingStylesTestOptionSets.cs (1)
28_optionKey = new OptionKey2(NamingStyleOptions.NamingPreferences, languageName);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Options\GlobalOptionsTests.cs (1)
70=> GetOption<T>(new OptionKey2(option, languageName));
Microsoft.CodeAnalysis.Workspaces (6)
IOptionReader.cs (3)
44=> options.TryGetOption<T>(new OptionKey2(option, language), out var value) ? value! : option.DefaultValue; 47=> options.TryGetOption<T>(new OptionKey2(option, language), out var value) ? value! : defaultValue; 53=> options.TryGetOption<CodeStyleOption2<T>>(new OptionKey2(option, language), out var style) ? style!.Value : defaultValue;
Options\EditorConfig\EditorConfigFileGenerator.cs (1)
47if (configOptions.TryGetOption(new OptionKey2(NamingStyleOptions.NamingPreferences, language), out NamingStylePreferences namingStylePreferences))
Options\GlobalOptionService.cs (2)
114=> GetOption<T>(new OptionKey2(option, language)); 165=> SetGlobalOption(new OptionKey2(option, language), value);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
OptionsCollection.cs (2)
56=> Add(new OptionKey2(option, _languageName), value); 62=> Add(new OptionKey2(option, _languageName), new CodeStyleOption2<T>(value, notification));
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
WorkspaceServiceTests\GlobalOptionServiceTests.cs (1)
127ImmutableArray.Create(KeyValuePairUtil.Create(new OptionKey2(FormattingOptions2.NewLine, "lang"), (object?)"NEW_LINE")),
Microsoft.VisualStudio.LanguageServices (3)
EditorConfigSettings\Whitespace\ViewModel\IndentationSizeViewModel.cs (1)
27_key = new OptionKey2(FormattingOptions2.IndentationSize, LanguageNames.CSharp);
EditorConfigSettings\Whitespace\ViewModel\NewLineViewModel.cs (1)
27_key = new OptionKey2(FormattingOptions2.NewLine, LanguageNames.CSharp);
EditorConfigSettings\Whitespace\ViewModel\TabSizeViewModelFactory.cs (1)
25_key = new OptionKey2(FormattingOptions2.TabSize, LanguageNames.CSharp);
Microsoft.VisualStudio.LanguageServices.Implementation (2)
Options\OptionStore.cs (2)
66=> (T)GetOption(new OptionKey2(option, language))!; 95=> SetOption(new OptionKey2(option, language), value);