10 references to IOptionPersister
Microsoft.CodeAnalysis.Workspaces (9)
Options\GlobalOptionService.cs (7)
27
private readonly Lazy<ImmutableArray<
IOptionPersister
>> _optionPersisters = new(() => GetOptionPersisters(optionPersisterProviders));
34
private static ImmutableArray<
IOptionPersister
> GetOptionPersisters(IEnumerable<Lazy<IOptionPersisterProvider>> optionPersisterProviders)
40
private static object? LoadOptionFromPersisterOrGetDefault(OptionKey2 optionKey, ImmutableArray<
IOptionPersister
> persisters)
42
foreach (
var
persister in persisters)
118
private static object? GetOption_NoLock(ref ImmutableDictionary<OptionKey2, object?> currentValues, OptionKey2 optionKey, ImmutableArray<
IOptionPersister
> persisters)
184
private static void PersistOption(ImmutableArray<
IOptionPersister
> persisters, OptionKey2 optionKey, object? value)
186
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"/>