3 types derived from VisualStudioOptionStorage
Microsoft.VisualStudio.LanguageServices (3)
Options\VisualStudioOptionStorage.cs (3)
16internal sealed class RoamingProfileStorage : VisualStudioOptionStorage 69internal sealed class FeatureFlagStorage : VisualStudioOptionStorage 88internal sealed class LocalUserProfileStorage : VisualStudioOptionStorage
16 references to VisualStudioOptionStorage
Microsoft.VisualStudio.LanguageServices (15)
Options\IVisualStudioStorageReadFallback.cs (1)
14/// from additional storage locations, if it is not found in the primary storage location specified in <see cref="VisualStudioOptionStorage"/>.
Options\VisualStudioOptionPersister.cs (12)
30return VisualStudioOptionStorage.Storages.TryGetValue(optionKey.Option.Definition.ConfigName, out var storage) && TryFetch(storage, optionKey, out value); 33public bool TryFetch(VisualStudioOptionStorage storage, OptionKey2 optionKey, out object? value) 36VisualStudioOptionStorage.RoamingProfileStorage roaming => roaming.TryFetch(_visualStudioSettingsOptionPersister, optionKey, out value), 37VisualStudioOptionStorage.FeatureFlagStorage featureFlags => featureFlags.TryFetch(_featureFlagPersister, optionKey, out value), 38VisualStudioOptionStorage.LocalUserProfileStorage local => local.TryFetch(_localUserRegistryPersister, optionKey, out value), 44if (!VisualStudioOptionStorage.Storages.TryGetValue(optionKey.Option.Definition.ConfigName, out var storage)) 54public Task PersistAsync(VisualStudioOptionStorage storage, OptionKey2 optionKey, object? value) 57VisualStudioOptionStorage.RoamingProfileStorage roaming => roaming.PersistAsync(_visualStudioSettingsOptionPersister, optionKey, value), 58VisualStudioOptionStorage.FeatureFlagStorage featureFlags => featureFlags.PersistAsync(_featureFlagPersister, value), 59VisualStudioOptionStorage.LocalUserProfileStorage local => local.PersistAsync(_localUserRegistryPersister, optionKey, value),
Options\VisualStudioOptionStorage.cs (2)
109public static readonly IReadOnlyDictionary<string, VisualStudioOptionStorage> Storages = new Dictionary<string, VisualStudioOptionStorage>()
Roslyn.VisualStudio.Next.UnitTests (1)
Options\VisualStudioOptionStorageTests.cs (1)
52.Where(pair => VisualStudioOptionStorage.Storages.TryGetValue(pair.Key, out var storage) && storage is VisualStudioOptionStorage.RoamingProfileStorage)