6 writes to Tags
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Extensions\ProtocolConversions.Diagnostics.cs (4)
70
diagnostic.
Tags
= diagnostic.Tags.Append(DiagnosticTag.Unnecessary);
85
additionalDiagnostic.
Tags
= [DiagnosticTag.Unnecessary, VSDiagnosticTags.HiddenInEditor, VSDiagnosticTags.HiddenInErrorList, VSDiagnosticTags.SuppressEditorToolTip];
93
diagnostic.
Tags
= diagnostic.Tags != null ? diagnostic.Tags.Append(DiagnosticTag.Unnecessary) : [DiagnosticTag.Unnecessary];
124
Tags
= ConvertTags(diagnosticData, potentialDuplicate),
Microsoft.CodeAnalysis.Razor.Workspaces (1)
Diagnostics\TaskListDiagnosticProvider.cs (1)
49
Tags
= s_taskItemTags
Microsoft.CodeAnalysis.Remote.Razor (1)
Diagnostics\RemoteDiagnosticsService.cs (1)
91
diagnostic.
Tags
= s_unnecessaryDiagnosticTags;
25 references to Tags
Microsoft.CodeAnalysis.LanguageServer.Protocol (13)
Extensions\ProtocolConversions.Diagnostics.cs (4)
69
Contract.ThrowIfNull(diagnostic.
Tags
, $"diagnostic {diagnostic.Identifier} was missing tags");
70
diagnostic.Tags = diagnostic.
Tags
.Append(DiagnosticTag.Unnecessary);
93
diagnostic.Tags = diagnostic.
Tags
!= null ? diagnostic.
Tags
.Append(DiagnosticTag.Unnecessary) : [DiagnosticTag.Unnecessary];
Protocol\Diagnostic.cs (7)
150
&& (this.
Tags
== null
151
? other.
Tags
== null
152
: this.
Tags
.Equals(other.
Tags
) || this.
Tags
.SequenceEqual(other.
Tags
))
174
HashCode.Combine(Range, Severity, Code, Source, Message, Hash.CombineValues(
Tags
), CodeDescription, Data);
Protocol\DiagnosticTagSupport.cs (1)
10
/// Represent the client's support for the <see cref="Diagnostic.
Tags
"/> property to provide metadata about a diagnostic.
Protocol\PublishDiagnosticsSetting.cs (1)
23
/// Client supports the <see cref="Diagnostic.
Tags
"/> property to provide meta data about a diagnostic.
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (10)
Diagnostics\PullDiagnosticTests.cs (10)
848
Assert.True(results.Single().Diagnostics![0].
Tags
!.Contains(DiagnosticTag.Unnecessary));
852
Assert.False(results.Single().Diagnostics![1].
Tags
!.Contains(DiagnosticTag.Unnecessary));
858
Assert.True(results.Single().Diagnostics![0].
Tags
!.Contains(DiagnosticTag.Unnecessary));
885
AssertEx.All(results.Single().Diagnostics, d => Assert.False(d.
Tags
!.Contains(DiagnosticTag.Unnecessary)));
917
Assert.False(results.Single().Diagnostics![0].
Tags
!.Contains(DiagnosticTag.Unnecessary));
921
Assert.True(results.Single().Diagnostics![1].
Tags
!.Contains(DiagnosticTag.Unnecessary));
925
Assert.True(results.Single().Diagnostics![2].
Tags
!.Contains(DiagnosticTag.Unnecessary));
931
Assert.True(results.Single().Diagnostics!.Single().
Tags
!.Contains(DiagnosticTag.Unnecessary));
1087
Assert.Contains(VSDiagnosticTags.BuildError, results[0].Diagnostics!.Single().
Tags
!);
1127
Assert.DoesNotContain(VSDiagnosticTags.BuildError, results[0].Diagnostics!.Single().
Tags
!);
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (1)
Cohost\CohostDocumentPullDiagnosticsTest.cs (1)
52
var tags = Assert.IsType<DiagnosticTag[]>(diagnostic.
Tags
);
Microsoft.VisualStudioCode.RazorExtension.UnitTests (1)
Endpoints\CohostDocumentPullDiagnosticsTest.cs (1)
51
var tags = Assert.IsType<DiagnosticTag[]>(diagnostic.
Tags
);