5 writes to Tags
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Extensions\ProtocolConversions.Diagnostics.cs (4)
66diagnostic.Tags = diagnostic.Tags.Append(DiagnosticTag.Unnecessary); 81additionalDiagnostic.Tags = [DiagnosticTag.Unnecessary, VSDiagnosticTags.HiddenInEditor, VSDiagnosticTags.HiddenInErrorList, VSDiagnosticTags.SuppressEditorToolTip]; 89diagnostic.Tags = diagnostic.Tags != null ? diagnostic.Tags.Append(DiagnosticTag.Unnecessary) : [DiagnosticTag.Unnecessary]; 120Tags = ConvertTags(diagnosticData, potentialDuplicate),
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\LanguageServer\Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (1)
135Tags = ConvertTags(d),
23 references to Tags
Microsoft.CodeAnalysis.LanguageServer.Protocol (13)
Extensions\ProtocolConversions.Diagnostics.cs (4)
65Contract.ThrowIfNull(diagnostic.Tags, $"diagnostic {diagnostic.Identifier} was missing tags"); 66diagnostic.Tags = diagnostic.Tags.Append(DiagnosticTag.Unnecessary); 89diagnostic.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)) 174HashCode.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)
784Assert.True(results.Single().Diagnostics![0].Tags!.Contains(DiagnosticTag.Unnecessary)); 788Assert.False(results.Single().Diagnostics![1].Tags!.Contains(DiagnosticTag.Unnecessary)); 794Assert.True(results.Single().Diagnostics![0].Tags!.Contains(DiagnosticTag.Unnecessary)); 821AssertEx.All(results.Single().Diagnostics, d => Assert.False(d.Tags!.Contains(DiagnosticTag.Unnecessary))); 853Assert.False(results.Single().Diagnostics![0].Tags!.Contains(DiagnosticTag.Unnecessary)); 857Assert.True(results.Single().Diagnostics![1].Tags!.Contains(DiagnosticTag.Unnecessary)); 861Assert.True(results.Single().Diagnostics![2].Tags!.Contains(DiagnosticTag.Unnecessary)); 867Assert.True(results.Single().Diagnostics!.Single().Tags!.Contains(DiagnosticTag.Unnecessary)); 1023Assert.Contains(VSDiagnosticTags.BuildError, results[0].Diagnostics!.Single().Tags!); 1063Assert.DoesNotContain(VSDiagnosticTags.BuildError, results[0].Diagnostics!.Single().Tags!);