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