resharper/resharper-unity/src/Unity/Odin/Feature/Services/CodeCompletion/GroupingAttributes/OdinTabGroupAttributeCodeCompletionProvider.cs [34:52]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - protected override bool IsAvailable(CSharpCodeCompletionContext context) { var solution = context.NodeInFile.GetSolution(); if (!OdinAttributeUtil.HasOdinSupport(solution)) return false; var stringLiteral = context.StringLiteral(); if (stringLiteral == null) return false; if (context.NodeInFile.GetContainingNode() == null) return false; var isUnityProject = context.BasicContext.CodeCompletionType == CodeCompletionType.BasicCompletion && context.PsiModule is IProjectPsiModule projectPsiModule && projectPsiModule.Project.IsUnityProject(); return isUnityProject; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - resharper/resharper-unity/src/Unity/Odin/Feature/Services/CodeCompletion/GroupingAttributes/OdinLayoutAttributesCodeCompletionProvider.cs [34:52]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - protected override bool IsAvailable(CSharpCodeCompletionContext context) { var solution = context.NodeInFile.GetSolution(); if (!OdinAttributeUtil.HasOdinSupport(solution)) return false; var stringLiteral = context.StringLiteral(); if (stringLiteral == null) return false; if (context.NodeInFile.GetContainingNode() == null) return false; var isUnityProject = context.BasicContext.CodeCompletionType == CodeCompletionType.BasicCompletion && context.PsiModule is IProjectPsiModule projectPsiModule && projectPsiModule.Project.IsUnityProject(); return isUnityProject; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -