3 types derived from VisualStudioOptionStorage
Microsoft.VisualStudio.LanguageServices (3)
Options\VisualStudioOptionStorage.cs (3)
23internal sealed class RoamingProfileStorage : VisualStudioOptionStorage 76internal sealed class FeatureFlagStorage : VisualStudioOptionStorage 95internal sealed class LocalUserProfileStorage : VisualStudioOptionStorage
40 references to VisualStudioOptionStorage
Microsoft.VisualStudio.LanguageServices (15)
Options\IVisualStudioStorageReadFallback.cs (1)
15/// from additional storage locations, if it is not found in the primary storage location specified in <see cref="VisualStudioOptionStorage"/>.
Options\VisualStudioOptionPersister.cs (12)
44return VisualStudioOptionStorage.Storages.TryGetValue(optionKey.Option.Definition.ConfigName, out var storage) && TryFetch(storage, optionKey, out value); 47public bool TryFetch(VisualStudioOptionStorage storage, OptionKey2 optionKey, out object? value) 50VisualStudioOptionStorage.RoamingProfileStorage roaming => roaming.TryFetch(_visualStudioSettingsOptionPersister, optionKey, out value), 51VisualStudioOptionStorage.FeatureFlagStorage featureFlags => featureFlags.TryFetch(_featureFlagPersister, optionKey, out value), 52VisualStudioOptionStorage.LocalUserProfileStorage local => local.TryFetch(_localUserRegistryPersister, optionKey, out value), 58if (!VisualStudioOptionStorage.Storages.TryGetValue(optionKey.Option.Definition.ConfigName, out var storage)) 68public Task PersistAsync(VisualStudioOptionStorage storage, OptionKey2 optionKey, object? value) 71VisualStudioOptionStorage.RoamingProfileStorage roaming => roaming.PersistAsync(_visualStudioSettingsOptionPersister, optionKey, value), 72VisualStudioOptionStorage.FeatureFlagStorage featureFlags => featureFlags.PersistAsync(_featureFlagPersister, value), 73VisualStudioOptionStorage.LocalUserProfileStorage local => local.PersistAsync(_localUserRegistryPersister, optionKey, value),
Options\VisualStudioOptionStorage.cs (2)
116public static readonly IReadOnlyDictionary<string, VisualStudioOptionStorage> Storages = new Dictionary<string, VisualStudioOptionStorage>()
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (4)
Options\GlobalOptionsTest.cs (4)
57if (!VisualStudioOptionStorage.Storages.TryGetValue(configName, out var storage)) 74if (storage is VisualStudioOptionStorage.FeatureFlagStorage) 83storage is VisualStudioOptionStorage.RoamingProfileStorage &&
Roslyn.VisualStudio.Next.UnitTests (21)
Options\VisualStudioOptionStorageTests.cs (21)
22return OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)) 31return OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)) 41return OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)) 51return OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)) 52.Where(pair => VisualStudioOptionStorage.Storages.TryGetValue(pair.Key, out var storage) && storage is VisualStudioOptionStorage.RoamingProfileStorage) 61return VisualStudioOptionStorage.Storages 74var infos = OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)); 101var infos = OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)); 139var storages = VisualStudioOptionStorage.Storages; 140var infos = OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)); 157var infos = OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)); 160var storage = (VisualStudioOptionStorage.RoamingProfileStorage)VisualStudioOptionStorage.Storages[configName]; 168var storages = VisualStudioOptionStorage.Storages; 169var infos = OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)); 175let roamingStorageKey = storage.Value is VisualStudioOptionStorage.RoamingProfileStorage { Key: var key } ? key : null 191var infos = OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location)); 203var storages = VisualStudioOptionStorage.Storages; 268var allOptionGroups = OptionsTestInfo.CollectOptions(Path.GetDirectoryName(typeof(VisualStudioOptionStorage).Assembly.Location))