2 implementations of IDiagnosticSource
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\Diagnostics\DiagnosticSources\AbstractDocumentDiagnosticSource.cs (1)
13
internal abstract class AbstractDocumentDiagnosticSource<TDocument> :
IDiagnosticSource
Handler\Diagnostics\DiagnosticSources\ProjectDiagnosticSource.cs (1)
15
internal sealed record class ProjectDiagnosticSource(Project Project) :
IDiagnosticSource
22 references to IDiagnosticSource
Microsoft.CodeAnalysis.LanguageServer.Protocol (22)
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (4)
89
protected abstract ValueTask<ImmutableArray<
IDiagnosticSource
>> GetOrderedDiagnosticSourcesAsync(
164
foreach (
var
diagnosticSource in orderedSources)
272
IDiagnosticSource
diagnosticSource,
314
private ImmutableArray<LSP.Diagnostic> ConvertDiagnostic(
IDiagnosticSource
diagnosticSource, DiagnosticData diagnosticData, ClientCapabilities capabilities)
Handler\Diagnostics\DocumentPullDiagnosticHandler.cs (7)
71
protected override ValueTask<ImmutableArray<
IDiagnosticSource
>> GetOrderedDiagnosticSourcesAsync(
92
return new(ImmutableArray<
IDiagnosticSource
>.Empty);
102
internal static ImmutableArray<
IDiagnosticSource
> GetDiagnosticSources(
117
return ImmutableArray<
IDiagnosticSource
>.Empty;
123
return ImmutableArray<
IDiagnosticSource
>.Empty;
127
? ImmutableArray.Create<
IDiagnosticSource
>(new TaskListDiagnosticSource(document, globalOptions))
128
: ImmutableArray.Create<
IDiagnosticSource
>(new DocumentDiagnosticSource(diagnosticKind, document));
Handler\Diagnostics\ProjectOrDocumentId.cs (1)
11
/// use in the <see cref="
IDiagnosticSource
"/>
Handler\Diagnostics\Public\PublicDocumentPullDiagnosticsHandler.cs (1)
86
protected override ValueTask<ImmutableArray<
IDiagnosticSource
>> GetOrderedDiagnosticSourcesAsync(DocumentDiagnosticParams diagnosticParams, RequestContext context, CancellationToken cancellationToken)
Handler\Diagnostics\Public\PublicWorkspacePullDiagnosticsHandler.cs (1)
128
protected override ValueTask<ImmutableArray<
IDiagnosticSource
>> GetOrderedDiagnosticSourcesAsync(
Handler\Diagnostics\WorkspacePullDiagnosticHandler.cs (8)
63
protected override async ValueTask<ImmutableArray<
IDiagnosticSource
>> GetOrderedDiagnosticSourcesAsync(
72
return ImmutableArray<
IDiagnosticSource
>.Empty;
84
return ImmutableArray<
IDiagnosticSource
>.Empty;
138
private static ImmutableArray<
IDiagnosticSource
> GetTaskListDiagnosticSources(
146
return ImmutableArray<
IDiagnosticSource
>.Empty;
148
using var _ = ArrayBuilder<
IDiagnosticSource
>.GetInstance(out var result);
162
public static async ValueTask<ImmutableArray<
IDiagnosticSource
>> GetDiagnosticSourcesAsync(
167
using var _ = ArrayBuilder<
IDiagnosticSource
>.GetInstance(out var result);