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