// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable disable
using System.ComponentModel;
using Microsoft.VisualStudio.Shell;
namespace Microsoft.VisualStudio.LanguageServices.Implementation.SolutionExplorer;
internal partial class AnalyzerItem
{
internal sealed class BrowseObject(AnalyzerItem analyzerItem) : LocalizableProperties
{
[Browsable(false)]
public AnalyzerItem AnalyzerItem { get; } = analyzerItem;
[BrowseObjectDisplayName(nameof(SolutionExplorerShim.Name))]
public string Name => AnalyzerItem.AnalyzerReference.Display;
[BrowseObjectDisplayName(nameof(SolutionExplorerShim.Path))]
public string Path => AnalyzerItem.AnalyzerReference.FullPath;
public override string GetClassName()
=> SolutionExplorerShim.Analyzer_Properties;
public override string GetComponentName()
=> AnalyzerItem.Text;
}
}
|