intellij-postfix-templates
intellij-postfix-templates copied to clipboard
"expr" Cannot be referenced directly in an expression
I want to write a template about "AopContext.currentProxy", but I can't do it
template:
result:
As you can see, if I didn't quote $expr$ separately, "expr" in the template would not work
If I have any incorrect use, please point out
This is the test result with 'this' observation keyword
Your syntax and use is correct. The problem is the plugin does not identify "expr" as variable if it's only used in the script part of variables. I haven't thought of this option yet. So thanks for reporting this bug.
Ok, hope to fix this soon,thank you
Unfortunately it seems to be more complicated as expected. First I thought that the problem is related to my plugin code, but seemingly it's not. Instead it seems that the postfix completion is not capable of using variables in variable expressions when these variables have not been used as placeholders somewhere. :(
It looks like you are preparing a brand new version? Is there any progress on this feature?