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