3 types derived from VisualStudioOptionStorage
Microsoft.VisualStudio.LanguageServices (3)
16 references to VisualStudioOptionStorage
Microsoft.VisualStudio.LanguageServices (15)
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),
Roslyn.VisualStudio.Next.UnitTests (1)