2 instantiations of VSDiagnostic
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Extensions\ProtocolConversions.Diagnostics.cs (1)
105var diagnostic = new LSP.VSDiagnostic
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\LanguageServer\Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (1)
128return [.. xamlDiagnostics.Value.Select(d => new VSDiagnostic()
29 references to VSDiagnostic
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Extensions\ProtocolConversions.Diagnostics.cs (4)
36var diagnostic = CreateLspDiagnostic(diagnosticData, project, isLiveSource, potentialDuplicate, supportsVisualStudioExtensions); 68var additionalDiagnostic = CreateLspDiagnostic(diagnosticData, project, isLiveSource, potentialDuplicate, supportsVisualStudioExtensions); 94private static LSP.VSDiagnostic CreateLspDiagnostic( 105var diagnostic = new LSP.VSDiagnostic
Protocol\Extensions\Converters\VSExtensionUtilities.cs (2)
21/// 'codeAction/resolve' request into <see cref="VSDiagnostic"/> objects even if <see cref="CodeAction.Diagnostics"/> 34TryAddConverter<Diagnostic, VSDiagnostic>();
Protocol\Extensions\VSDiagnostic.cs (1)
10/// <see cref="VSDiagnostic"/> extends <see cref="Diagnostic"/> providing additional properties used by Visual Studio.
Protocol\Extensions\VSDiagnosticProjectInformation.cs (1)
10/// <see cref="VSDiagnosticProjectInformation"/> represents the project and context in which the <see cref="VSDiagnostic"/> is generated.
Protocol\Extensions\VSDiagnosticRank.cs (1)
8/// <see cref="VSDiagnosticRank"/> represents the rank of a <see cref="VSDiagnostic"/> object.
Protocol\Internal\Diagnostics\VSInternalDiagnosticOptions.cs (1)
19/// Maps to <see cref="VSDiagnostic.Identifier"/>.
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (15)
Diagnostics\AdditionalFileDiagnosticsTests.cs (2)
112Assert.Equal("CSProj1", ((LSP.VSDiagnostic)results[1].Diagnostics!.Single()).Projects!.First().ProjectName); 115Assert.Equal("CSProj2", ((LSP.VSDiagnostic)results[4].Diagnostics!.Single()).Projects!.First().ProjectName);
Diagnostics\PullDiagnosticTests.cs (13)
172var vsDiagnostic = (VSDiagnostic)results.Single().Diagnostics!.Single(); 190var vsDiagnostic = (VSDiagnostic)results.Single().Diagnostics!.Single(); 432var vsDiagnostic = (LSP.VSDiagnostic)results.Single().Diagnostics!.Single(); 444AssertEx.All(results.Single().Diagnostics, d => Assert.Equal("CSProj1", ((VSDiagnostic)d).Projects!.Single().ProjectName)); 473var csproj1Diagnostic = (VSDiagnostic)csproj1Results.Single().Diagnostics!.Single(); 475var csproj2Diagnostic = (VSDiagnostic)csproj2Results.Single().Diagnostics!.Single(); 1139Assert.Equal(VSDiagnosticRank.Default, ((VSDiagnostic)results[0].Diagnostics!.Single()).DiagnosticRank); 1171Assert.Equal(rank, ((VSDiagnostic)results[0].Diagnostics!.Single()).DiagnosticRank);
Microsoft.VisualStudio.LanguageServices.Xaml (4)
Implementation\LanguageServer\Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (2)
55protected abstract TReport CreateReport(TextDocumentIdentifier? identifier, VSDiagnostic[]? diagnostics, string? resultId); 120private static VSDiagnostic[]? ConvertToVSDiagnostics(ImmutableArray<XamlDiagnostic>? xamlDiagnostics, Document document, SourceText text)
Implementation\LanguageServer\Handler\Diagnostics\DocumentPullDiagnosticHandler.cs (1)
32protected override VSInternalDiagnosticReport CreateReport(TextDocumentIdentifier? identifier, VSDiagnostic[]? diagnostics, string? resultId)
Implementation\LanguageServer\Handler\Diagnostics\WorkspacePullDiagnosticHandler.cs (1)
31protected override VSInternalWorkspaceDiagnosticReport CreateReport(TextDocumentIdentifier? identifier, VSDiagnostic[]? diagnostics, string? resultId)