Hi,
I have always wished that when I was writing a function I could do
something like this:
<cffunction name="sayGoodBye">
<cfargument name="toWhom"
<cfreturn "Goodbye" & arguments.
and at the "." press ctrl-space and have it suggest the arguments.
So I had a go at getting it working, and I have to a point in this
branch on my github cfeclipse fork:
https://github.com/am2605/cfeclipse/tree/20120114-function-arg-completion
However I wouldn't mind some feedback, in particular - did I do the
right think to create a new AssistContributor
(CFMLCtxFunctionParamAssist), or would have this been better placed
somewhere else?
Also I'm seeing in the eclipse console this stack track sometimes:
__cf_start_tag_end
java.lang.StringIndexOutOfBoundsException: String index out of range:
-1
at java.lang.String.charAt(Unknown Source)
at
org.cfeclipse.cfml.editors.contentassist.CFMLFunctionCompletionProcessor.computeCompletionProposals(CFMLFunctionCompletionProcessor.java:
598)
at
org.cfeclipse.cfml.editors.contentassist.CFMLFunctionCompletionProcessor.getTagProposals(CFMLFunctionCompletionProcessor.java:
946)
at
org.cfeclipse.cfml.editors.contentassist.CFEPrimaryAssist.collectProposals(CFEPrimaryAssist.java:
424)
at
org.cfeclipse.cfml.editors.contentassist.CFEPrimaryAssist.computeCompletionProposals(CFEPrimaryAssist.java:
367)
Is it anything to worry about? (and is it something I caused - I
don't think so but would like to know for sure?)
Thanks,
Andrew.