20 references to Descriptor
Microsoft.VisualStudio.LanguageServices.Implementation (20)
SolutionExplorer\AnalyzersCommandHandler.cs (4)
254
_tracker.SelectedDiagnosticItems[0].
Descriptor
.GetValidHelpLinkUri() != null;
288
var severity = diagnosticItem.
Descriptor
.GetEffectiveSeverity(project.CompilationOptions, analyzerConfigOptions?.ConfigOptionsWithoutFallback, analyzerConfigOptions?.TreeOptions);
325
var configurable = !_tracker.SelectedDiagnosticItems.Any(static item => item.
Descriptor
.ImmutableCustomTags().Contains(WellKnownDiagnosticTags.NotConfigurable));
516
var uri = _tracker.SelectedDiagnosticItems[0].
Descriptor
.GetValidHelpLinkUri();
SolutionExplorer\DiagnosticItem\DiagnosticItem.BrowseObject.cs (10)
21
public string Id => DiagnosticItem.
Descriptor
.Id;
24
public string Title => DiagnosticItem.
Descriptor
.Title.ToString(CultureInfo.CurrentUICulture);
27
public string Description => DiagnosticItem.
Descriptor
.Description.ToString(CultureInfo.CurrentUICulture);
30
public string? HelpLink => DiagnosticItem.
Descriptor
.GetValidHelpLinkUri()?.AbsoluteUri;
33
public string Category => DiagnosticItem.
Descriptor
.Category;
37
=> MapDiagnosticSeverityToText(DiagnosticItem.
Descriptor
.DefaultSeverity);
40
public bool EnabledByDefault => DiagnosticItem.
Descriptor
.IsEnabledByDefault;
44
=> DiagnosticItem.
Descriptor
.MessageFormat.ToString(CultureInfo.CurrentUICulture);
48
=> string.Join(" ", DiagnosticItem.
Descriptor
.CustomTags);
61
return DiagnosticItem.
Descriptor
.Id;
SolutionExplorer\DiagnosticItem\DiagnosticItem.cs (6)
57
ruleSetDocument.SetSeverity(_analyzerReference.Display,
Descriptor
.Id, value);
64
var effectiveSeverity = value.ToDiagnosticSeverity() ??
Descriptor
.DefaultSeverity;
65
var diagnostic = Diagnostic.Create(
Descriptor
, Location.None, effectiveSeverity, additionalLocations: null, properties: null);
72
Hash.Combine(this.
Descriptor
.GetHashCode(), (int)_effectiveSeverity)));
85
this.
Descriptor
.Equals(other.
Descriptor
) &&