7 instantiations of ProjectOrDocumentId
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (3)
255
return new
ProjectOrDocumentId
(document.Id);
261
return new
ProjectOrDocumentId
(project.Id);
267
return new
ProjectOrDocumentId
(additionalDocument.Id);
Handler\Diagnostics\DiagnosticSources\AbstractDocumentDiagnosticSource.cs (1)
23
public ProjectOrDocumentId GetId() =>
new
(Document.Id);
Handler\Diagnostics\DiagnosticSources\AbstractProjectDiagnosticSource.cs (1)
28
public ProjectOrDocumentId GetId() =>
new
(Project.Id);
Handler\SourceGenerators\SourceGeneratedDocumentGetTextHandler.cs (1)
54
var projectOrDocument = new
ProjectOrDocumentId
(document.Id);
Handler\SpellCheck\AbstractSpellCheckingHandler.cs (1)
105
new
ProjectOrDocumentId
(document.Id),
14 references to ProjectOrDocumentId
Microsoft.CodeAnalysis.LanguageServer.Protocol (14)
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (4)
136
using var _1 = PooledDictionary<
ProjectOrDocumentId
, PreviousPullResult>.GetInstance(out var documentIdToPreviousDiagnosticParams);
153
using var _3 = PooledHashSet<
ProjectOrDocumentId
>.GetInstance(out var seenDiagnosticSourceIds);
227
Dictionary<
ProjectOrDocumentId
, PreviousPullResult> idToPreviousDiagnosticParams,
250
static async Task<
ProjectOrDocumentId
?> GetIdForPreviousResultAsync(TextDocumentIdentifier textDocumentIdentifier, Solution solution, CancellationToken cancellationToken)
Handler\Diagnostics\DiagnosticSourceProviders\DiagnosticSourceManager.cs (1)
148
public
ProjectOrDocumentId
GetId() => sources[0].GetId();
Handler\Diagnostics\DiagnosticSources\AbstractDocumentDiagnosticSource.cs (1)
23
public
ProjectOrDocumentId
GetId() => new(Document.Id);
Handler\Diagnostics\DiagnosticSources\AbstractProjectDiagnosticSource.cs (1)
28
public
ProjectOrDocumentId
GetId() => new(Project.Id);
Handler\Diagnostics\DiagnosticSources\IDiagnosticSource.cs (1)
20
ProjectOrDocumentId
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)
29
private readonly ConcurrentDictionary<(Workspace workspace,
ProjectOrDocumentId
id), CacheItem> _idToLastReportedResult = [];
72
Dictionary<
ProjectOrDocumentId
, PreviousPullResult> idToClientLastResult,
73
ProjectOrDocumentId
projectOrDocumentId,
Handler\SourceGenerators\SourceGeneratedDocumentGetTextHandler.cs (2)
54
var
projectOrDocument = new ProjectOrDocumentId(document.Id);
56
using var _ = PooledDictionary<
ProjectOrDocumentId
, PreviousPullResult>.GetInstance(out var previousPullResults);