35 references to IDiagnosticSource
Microsoft.CodeAnalysis.LanguageServer.Protocol (35)
Features\EditAndContinue\EditAndContinueDiagnosticSource_OpenDocument.cs (1)
81public static IDiagnosticSource CreateOpenDocumentSource(Document document)
Features\EditAndContinue\EditAndContinueDiagnosticSource_Workspace.cs (2)
38public static async ValueTask<ImmutableArray<IDiagnosticSource>> CreateWorkspaceDiagnosticSourcesAsync(Solution solution, Func<Document, bool> isDocumentOpen, CancellationToken cancellationToken) 47using var _ = ArrayBuilder<IDiagnosticSource>.GetInstance(out var sources);
Handler\Diagnostics\AbstractDocumentPullDiagnosticHandler.cs (1)
31protected override ValueTask<ImmutableArray<IDiagnosticSource>> GetOrderedDiagnosticSourcesAsync(TDiagnosticsParams diagnosticsParams, string? requestDiagnosticCategory, RequestContext context, CancellationToken cancellationToken)
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (3)
72protected abstract ValueTask<ImmutableArray<IDiagnosticSource>> GetOrderedDiagnosticSourcesAsync( 275IDiagnosticSource diagnosticSource, 314private ImmutableArray<LSP.Diagnostic> ConvertDiagnostic(IDiagnosticSource diagnosticSource, DiagnosticData diagnosticData, ClientCapabilities capabilities)
Handler\Diagnostics\AbstractWorkspacePullDiagnosticsHandler.cs (1)
59protected override ValueTask<ImmutableArray<IDiagnosticSource>> GetOrderedDiagnosticSourcesAsync(TDiagnosticsParams diagnosticsParams, string? requestDiagnosticCategory, RequestContext context, CancellationToken cancellationToken)
Handler\Diagnostics\DiagnosticSourceProviders\DiagnosticSourceManager.cs (11)
54public ValueTask<ImmutableArray<IDiagnosticSource>> CreateDocumentDiagnosticSourcesAsync(RequestContext context, string? providerName, CancellationToken cancellationToken) 57public ValueTask<ImmutableArray<IDiagnosticSource>> CreateWorkspaceDiagnosticSourcesAsync(RequestContext context, string? providerName, CancellationToken cancellationToken) 60private static async ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync( 82using var _ = ArrayBuilder<IDiagnosticSource>.GetInstance(out var sourcesBuilder); 99public static ImmutableArray<IDiagnosticSource> AggregateSourcesIfNeeded(ImmutableArray<IDiagnosticSource> sources, bool isDocument) 127/// Aggregates multiple <see cref="IDiagnosticSource"/>s into a single source. 133private sealed class AggregatedDocumentDiagnosticSource(ImmutableArray<IDiagnosticSource> sources) : IDiagnosticSource 135public static ImmutableArray<IDiagnosticSource> AggregateIfNeeded(IEnumerable<IDiagnosticSource> sources)
Handler\Diagnostics\DiagnosticSourceProviders\DocumentSyntaxAndSemanticDiagnosticSourceProvider.cs (1)
25public ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken)
Handler\Diagnostics\DiagnosticSourceProviders\IDiagnosticSourceManager.cs (2)
34ValueTask<ImmutableArray<IDiagnosticSource>> CreateDocumentDiagnosticSourcesAsync(RequestContext context, string? providerName, CancellationToken cancellationToken); 42ValueTask<ImmutableArray<IDiagnosticSource>> CreateWorkspaceDiagnosticSourcesAsync(RequestContext context, string? providerName, CancellationToken cancellationToken);
Handler\Diagnostics\DiagnosticSourceProviders\IDiagnosticSourceProvider.cs (1)
34ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken);
Handler\Diagnostics\DiagnosticSourceProviders\WorkspaceDocumentsAndProjectDiagnosticSourceProvider.cs (2)
52public async ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken) 56using var _ = ArrayBuilder<IDiagnosticSource>.GetInstance(out var result);
Handler\Diagnostics\DiagnosticSources\AbstractDocumentDiagnosticSource.cs (1)
13internal abstract class AbstractDocumentDiagnosticSource<TDocument>(TDocument document) : IDiagnosticSource
Handler\Diagnostics\DiagnosticSources\AbstractProjectDiagnosticSource.cs (1)
15: IDiagnosticSource
Handler\Diagnostics\DiagnosticsPullCache.cs (1)
18internal record struct DiagnosticsRequestState(Project Project, int GlobalStateVersion, RequestContext Context, IDiagnosticSource DiagnosticSource);
Handler\Diagnostics\ProjectOrDocumentId.cs (1)
11/// use in the <see cref="IDiagnosticSource"/>
Handler\Diagnostics\Public\PublicDocumentNonLocalDiagnosticSourceProvider.cs (1)
32public ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken)
Handler\EditAndContinue\DocumentEditAndContinueDiagnosticSourceProvider.cs (1)
26public ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken)
Handler\EditAndContinue\WorkspaceEditAndContinueDiagnosticSourceProvider.cs (1)
27public ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken)
Handler\Tasks\DocumentTaskDiagnosticSourceProvider.cs (1)
26public ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken)
Handler\Tasks\WorkspaceTaskDiagnosticSourceProvider.cs (2)
29public ValueTask<ImmutableArray<IDiagnosticSource>> CreateDiagnosticSourcesAsync(RequestContext context, CancellationToken cancellationToken) 36using var _ = ArrayBuilder<IDiagnosticSource>.GetInstance(out var result);