10 references to IOptionPersister
Microsoft.CodeAnalysis.Workspaces (9)
Options\GlobalOptionService.cs (7)
28
private readonly Lazy<ImmutableArray<
IOptionPersister
>> _optionPersisters = new(() => GetOptionPersisters(optionPersisterProviders));
35
private static ImmutableArray<
IOptionPersister
> GetOptionPersisters(IEnumerable<Lazy<IOptionPersisterProvider>> optionPersisterProviders)
41
private static object? LoadOptionFromPersisterOrGetDefault(OptionKey2 optionKey, ImmutableArray<
IOptionPersister
> persisters)
43
foreach (
var
persister in persisters)
119
private static object? GetOption_NoLock(ref ImmutableDictionary<OptionKey2, object?> currentValues, OptionKey2 optionKey, ImmutableArray<
IOptionPersister
> persisters)
185
private static void PersistOption(ImmutableArray<
IOptionPersister
> persisters, OptionKey2 optionKey, object? value)
187
foreach (
var
persister in persisters)
Options\IOptionPersisterProvider.cs (2)
10
/// Gets the <see cref="
IOptionPersister
"/>. If the persister does not already exist, it is created.
17
IOptionPersister
GetOrCreatePersister();
Microsoft.VisualStudio.LanguageServices (1)
Options\VisualStudioSettingsOptionPersister.cs (1)
38
/// We make sure this code is from the UI by asking for all <see cref="
IOptionPersister
"/> in <see cref="RoslynPackage.RegisterOnAfterPackageLoadedAsyncWork"/>