2 instantiations of CacheEntry
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\ImportCompletion\ImportCompletionProviderHelper.cs (2)
21public static CacheEntry Default { get; } = new(null, Checksum.Null, ImmutableArray<string>.Empty); 73_sdkGlobalUsingsCache[project.Id] = new(globalUsingDocument.Id, checksum, globalUsings);
7 references to CacheEntry
Microsoft.CodeAnalysis.CSharp.Features (7)
Completion\CompletionProviders\ImportCompletion\ImportCompletionProviderHelper.cs (7)
21public static CacheEntry Default { get; } = new(null, Checksum.Null, ImmutableArray<string>.Empty); 24private static readonly ConcurrentDictionary<ProjectId, CacheEntry> _sdkGlobalUsingsCache = new(); 33if (_sdkGlobalUsingsCache.TryGetValue(context.Document.Project.Id, out var cacheEntry)) 43var globalUsings = await GetGlobalUsingsAsync(context.Document.Project, CacheEntry.Default, cancellationToken).ConfigureAwait(false); 47static async Task<ImmutableArray<string>> GetGlobalUsingsAsync(Project project, CacheEntry cacheEntry, CancellationToken cancellationToken) 60_sdkGlobalUsingsCache[project.Id] = CacheEntry.Default; 61return CacheEntry.Default.GlobalUsings;