-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Find usages and completion for ShaderLab properties #362
Conversation
Everything's unresolved for now
The files are duplicated by Visual C++ adding them to a hidden project for "single file intellisense"
{ | ||
public class ShaderLabDeclaredElementType : DeclaredElementType | ||
{ | ||
// TODO: Proper icon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want some unity-specific icon here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. I'll add a request
} | ||
|
||
if (style.ShowConstantValue) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this empty code block intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really. I meant to implement it, and forgot :) No-one's using it yet, though. I'll fix it.
|
||
namespace JetBrains.ReSharper.Plugins.Unity.ShaderLab.Psi.Resolve | ||
{ | ||
// TODO: Terrible name... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can use a sample of the entity it is describing in the comment then :)
Also, WDYT something like IReferenceToVariableReference (doesn't sound good to me too though)?
Added a resolve step for ShaderLab, enabling find usages and highlighting usages of ShaderLab properties.
Note that this only works for usages of properties in ShaderLab blocks, and not for usages of the same property as a parameters to Cg/HLSL programs.
Blend [_Src] [_Dst]
)