7 instantiations of ProjectOrDocumentId
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (3)
255return new ProjectOrDocumentId(document.Id); 261return new ProjectOrDocumentId(project.Id); 267return new ProjectOrDocumentId(additionalDocument.Id);
Handler\Diagnostics\DiagnosticSources\AbstractDocumentDiagnosticSource.cs (1)
23public ProjectOrDocumentId GetId() => new(Document.Id);
Handler\Diagnostics\DiagnosticSources\AbstractProjectDiagnosticSource.cs (1)
28public ProjectOrDocumentId GetId() => new(Project.Id);
Handler\SourceGenerators\SourceGeneratedDocumentGetTextHandler.cs (1)
54var projectOrDocument = new ProjectOrDocumentId(document.Id);
Handler\SpellCheck\AbstractSpellCheckingHandler.cs (1)
105new ProjectOrDocumentId(document.Id),
14 references to ProjectOrDocumentId
Microsoft.CodeAnalysis.LanguageServer.Protocol (14)
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (4)
136using var _1 = PooledDictionary<ProjectOrDocumentId, PreviousPullResult>.GetInstance(out var documentIdToPreviousDiagnosticParams); 153using var _3 = PooledHashSet<ProjectOrDocumentId>.GetInstance(out var seenDiagnosticSourceIds); 227Dictionary<ProjectOrDocumentId, PreviousPullResult> idToPreviousDiagnosticParams, 250static async Task<ProjectOrDocumentId?> GetIdForPreviousResultAsync(TextDocumentIdentifier textDocumentIdentifier, Solution solution, CancellationToken cancellationToken)
Handler\Diagnostics\DiagnosticSourceProviders\DiagnosticSourceManager.cs (1)
148public ProjectOrDocumentId GetId() => sources[0].GetId();
Handler\Diagnostics\DiagnosticSources\AbstractDocumentDiagnosticSource.cs (1)
23public ProjectOrDocumentId GetId() => new(Document.Id);
Handler\Diagnostics\DiagnosticSources\AbstractProjectDiagnosticSource.cs (1)
28public ProjectOrDocumentId GetId() => new(Project.Id);
Handler\Diagnostics\DiagnosticSources\IDiagnosticSource.cs (1)
20ProjectOrDocumentId GetId();
Handler\PullHandlers\VersionedPullCache.CacheItem.cs (1)
16/// Internal cache item that updates state for a particular <see cref="Workspace"/> and <see cref="ProjectOrDocumentId"/> in <see cref="VersionedPullCache{TCheapVersion, TExpensiveVersion, TState, TComputedData}"/>
Handler\PullHandlers\VersionedPullCache.cs (3)
29private readonly ConcurrentDictionary<(Workspace workspace, ProjectOrDocumentId id), CacheItem> _idToLastReportedResult = []; 72Dictionary<ProjectOrDocumentId, PreviousPullResult> idToClientLastResult, 73ProjectOrDocumentId projectOrDocumentId,
Handler\SourceGenerators\SourceGeneratedDocumentGetTextHandler.cs (2)
54var projectOrDocument = new ProjectOrDocumentId(document.Id); 56using var _ = PooledDictionary<ProjectOrDocumentId, PreviousPullResult>.GetInstance(out var previousPullResults);