12 references to OptionKey2
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\Data\TieredAnalyzerConfigOptions.cs (1)
40initialValue = GlobalOptions.GetOption<TValue>(new OptionKey2(option, option.IsPerLanguage ? Language : null))!;
Microsoft.CodeAnalysis.Workspaces (3)
Options\EditorConfig\EditorConfigFileGenerator.cs (1)
67var optionKey = new OptionKey2(option, option.IsPerLanguage ? language : null);
Options\SolutionOptionSet.cs (2)
56? _legacyGlobalOptions.GlobalOptions.GetOption<object?>(new OptionKey2(internallyDefinedOption, optionKey.Language)) 82var internallyDefined = _changedOptionKeys.Where(key => key.Option is IOption2).SelectAsArray(key => KeyValuePairUtil.Create(new OptionKey2((IOption2)key.Option, key.Language), _values[key]));
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
WorkspaceServiceTests\GlobalOptionServiceTests.cs (1)
317var optionKey = new OptionKey2(option, language);
Microsoft.VisualStudio.IntegrationTest.Utilities (4)
InProcess\VisualStudioWorkspace_InProc.cs (3)
135_globalOptions.SetGlobalOption(new OptionKey2(option, LanguageNames.CSharp), option.DefaultValue); 136_globalOptions.SetGlobalOption(new OptionKey2(option, LanguageNames.VisualBasic), option.DefaultValue); 140_globalOptions.SetGlobalOption(new OptionKey2(option, language: null), option.DefaultValue);
WellKnownGlobalOptions.cs (1)
37=> new OptionKey2(GetOption(option), language);
Microsoft.VisualStudio.LanguageServices.Implementation (2)
Options\OptionStore.cs (2)
71return (T)GetOption(new OptionKey2(option, language))!; 100SetOption(new OptionKey2(option, language), value);
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (1)
Options\GlobalOptionsTest.cs (1)
70var key = new OptionKey2(option, language);