Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Commit

Permalink
Fixed targetting IContentData instead of IContent
Browse files Browse the repository at this point in the history
  • Loading branch information
applejag committed Jan 18, 2019
1 parent 5ca17c5 commit 6eeefa8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
38 changes: 19 additions & 19 deletions src/EPiServerTooltips.Vsix/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="EPiServerTooltips.0d19fb8c-047f-4f18-8db1-637cc4274011" Version="1.0" Language="en-US" Publisher="jag"/>
<DisplayName>EPiServerTooltips</DisplayName>
<Description xml:space="preserve">This is a sample diagnostic extension for the .NET Compiler Platform ("Roslyn").</Description>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,)" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
</Dependencies>
<Assets>
<Asset Type="Microsoft.VisualStudio.MefComponent" d:Source="Project" d:ProjectName="EPiServerTooltips" Path="|EPiServerTooltips|"/>
<Asset Type="Microsoft.VisualStudio.Analyzer" d:Source="Project" d:ProjectName="EPiServerTooltips" Path="|EPiServerTooltips|"/>
</Assets>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,16.0)" DisplayName="Visual Studio core editor" />
<Prerequisite Id="Microsoft.VisualStudio.Component.Roslyn.LanguageServices" Version="[15.0,16.0)" DisplayName="Roslyn Language Services" />
</Prerequisites>
<Metadata>
<Identity Id="EPiServerTooltips.0d19fb8c-047f-4f18-8db1-637cc4274011" Version="1.1" Language="en-US" Publisher="jag"/>
<DisplayName>EPiServerTooltips</DisplayName>
<Description xml:space="preserve">This is a sample diagnostic extension for the .NET Compiler Platform ("Roslyn").</Description>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,)" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
</Dependencies>
<Assets>
<Asset Type="Microsoft.VisualStudio.MefComponent" d:Source="Project" d:ProjectName="EPiServerTooltips" Path="|EPiServerTooltips|"/>
<Asset Type="Microsoft.VisualStudio.Analyzer" d:Source="Project" d:ProjectName="EPiServerTooltips" Path="|EPiServerTooltips|"/>
</Assets>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,16.0)" DisplayName="Visual Studio core editor" />
<Prerequisite Id="Microsoft.VisualStudio.Component.Roslyn.LanguageServices" Version="[15.0,16.0)" DisplayName="Roslyn Language Services" />
</Prerequisites>
</PackageManifest>
2 changes: 1 addition & 1 deletion src/EPiServerTooltips/ContentPropertyAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private static void AnalyzePropertyNode(SyntaxNodeAnalysisContext context)

// Skip if not IContent
var classSymbol = (INamedTypeSymbol) context.SemanticModel.GetDeclaredSymbol(declaration.Parent);
if (IsDerivedFromInterface(classSymbol, EPiServerTypes.IContent) == false)
if (IsDerivedFromInterface(classSymbol, EPiServerTypes.IContentData) == false)
return;

// Skip if ignored
Expand Down
1 change: 1 addition & 0 deletions src/EPiServerTooltips/EPiServerTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
public class EPiServerTypes
{
public const string IContent = "EPiServer.Core.IContent";
public const string IContentData = "EPiServer.Core.IContentData";
public const string IgnoreAttribute = "EPiServer.DataAnnotations.IgnoreAttribute";
}
}

0 comments on commit 6eeefa8

Please sign in to comment.