1 instantiation of CacheItem
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\PullHandlers\VersionedPullCache.cs (1)
77
static (_, uniqueKey) => new
CacheItem
(uniqueKey),
6 references to CacheItem
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Handler\PullHandlers\VersionedPullCache.cs (6)
26
/// The <see cref="
CacheItem
"/> itself however will internally guarantee that the state for a specific workspace+project/doc will only
29
private readonly ConcurrentDictionary<(Workspace workspace, ProjectOrDocumentId id),
CacheItem
> _idToLastReportedResult = [];
35
/// Called by <see cref="
CacheItem
"/> with Interlocked access to ensure that all cache items generate unique resultIds.
43
/// Note - this will run under the semaphore in <see cref="
CacheItem
._gate"/>.
51
/// Note - this will run under the semaphore in <see cref="
CacheItem
._gate"/>.
75
var
cacheEntry = _idToLastReportedResult.GetOrAdd(