JetBrains / JetBrains/resharper-unity
Add reference to function string literal parameter for ContextMenuItemAttribute
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
The [`ContextMenuItemAttribute`](https://docs.unity3d.com/ScriptReference/ContextMenuItemAttribute.html) type includes a `function` parameter that is a string literal referencing a function name on the current type.
Add a reference to the method:
* Code completion
* Find usages
* Rename
* Inspections for method signature
* Create from usage
* Suggest using `nameof`
Contributor guide
Research direction
Start by locating the Unity support for ContextMenuItemAttribute and how string literals are resolved to methods. Review the requested behaviors—completion, usages, rename, signature inspections, create-from-usage, and nameof suggestions—and verify each one against a representative attribute usage. Done means the function parameter is treated as a reference to a method on the current type across those IDE features.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100