23 references to TypeImportCompletionCacheEntry
Microsoft.CodeAnalysis.Features (23)
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (18)
26
private IImportCompletionCacheService<
TypeImportCompletionCacheEntry
,
TypeImportCompletionCacheEntry
> CacheService { get; }
36
CacheService = services.GetRequiredService<IImportCompletionCacheService<
TypeImportCompletionCacheEntry
,
TypeImportCompletionCacheEntry
>>();
56
ImmutableArray<CompletionItem> GetItemsFromCacheResult(
TypeImportCompletionCacheEntry
cacheEntry)
67
private async Task<(ImmutableArray<
TypeImportCompletionCacheEntry
> results, bool isPartial)> GetCacheEntriesAsync(Project currentProject, Compilation originCompilation, bool forceCacheCreation, CancellationToken cancellationToken)
72
using var _1 = ArrayBuilder<
TypeImportCompletionCacheEntry
>.GetInstance(out var resultBuilder);
95
else if (CacheService.ProjectItemsCache.TryGetValue(projectId, out
var
cacheEntry))
117
if (TryGetUpToDateCacheForPEReference(originCompilation, solution, editorBrowsableInfo.Value, peReference, cancellationToken, out
var
upToDateCacheEntry))
122
else if (CacheService.PEItemsCache.TryGetValue(peReferenceKey, out
var
cacheEntry))
164
private async Task<
TypeImportCompletionCacheEntry
> GetUpToDateCacheForProjectAsync(Project project, CancellationToken cancellationToken)
188
out
TypeImportCompletionCacheEntry
cacheEntry)
208
private
TypeImportCompletionCacheEntry
CreateCacheWorker<TKey>(
212
IDictionary<TKey,
TypeImportCompletionCacheEntry
> cache,
218
if (cache.TryGetValue(key, out
var
cacheEntry) && cacheEntry.Checksum == checksum)
223
using var builder = new
TypeImportCompletionCacheEntry
.Builder(SymbolKey.Create(assembly, cancellationToken), checksum, Language, GenericTypeSuffix, editorBrowsableInfo);
235
TypeImportCompletionCacheEntry
.Builder builder,
244
TypeImportCompletionCacheEntry
.Builder builder,
Completion\Providers\ImportCompletionProvider\DefaultTypeImportCompletionCacheServiceFactory.cs (4)
13
[ExportWorkspaceServiceFactory(typeof(IImportCompletionCacheService<
TypeImportCompletionCacheEntry
,
TypeImportCompletionCacheEntry
>), ServiceLayer.Default), Shared]
17
: AbstractImportCompletionCacheServiceFactory<
TypeImportCompletionCacheEntry
,
TypeImportCompletionCacheEntry
>(listenerProvider, AbstractTypeImportCompletionService.BatchUpdateCacheAsync, CancellationToken.None)
Completion\Providers\ImportCompletionProvider\TypeImportCompletionCacheEntry.cs (1)
159
public
TypeImportCompletionCacheEntry
ToReferenceCacheEntry()