diff --git a/resharper/resharper-unity/src/Unity.Shaders/HlslSupport/Integration/Cpp/UnityShaderModuleProvider.cs b/resharper/resharper-unity/src/Unity.Shaders/HlslSupport/Integration/Cpp/UnityShaderModuleProvider.cs index 08e80dfc7b..7b263e88d5 100644 --- a/resharper/resharper-unity/src/Unity.Shaders/HlslSupport/Integration/Cpp/UnityShaderModuleProvider.cs +++ b/resharper/resharper-unity/src/Unity.Shaders/HlslSupport/Integration/Cpp/UnityShaderModuleProvider.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using JetBrains.Collections.Viewable; using JetBrains.DocumentManagers; using JetBrains.Lifetimes; using JetBrains.Metadata.Reader.API; @@ -121,7 +122,7 @@ public class UnityShaderPsiModuleProviderFilter : IProjectPsiModuleProviderFilte public Tuple OverrideHandler(Lifetime lifetime, IProject project, IProjectPsiModuleHandler handler) { - if ( handler.PrimaryModule != null && project.GetComponent().IsUnityProject(project)) + if (handler.PrimaryModule != null && project.GetComponent().IsUnityProject.HasTrueValue()) { var module = new UnityShaderModule(project.GetSolution(), project.Name, handler.PrimaryModule.TargetFrameworkId); var newHandlerAndDecorator = new UnityShaderModuleHandlerAndDecorator(module, handler);