ColdFusion icon indicating copy to clipboard operation
ColdFusion copied to clipboard

Function Completion

Open haussjonas opened this issue 12 years ago • 6 comments

Why is there only a function completion for the cfscript tag? Is there any chance to add this feature to complete functions "everywhere"? Even if I'm using them without any cfscript?

haussjonas avatar Oct 01 '13 16:10 haussjonas

I don't know, are you on ST2 or ST3 development? Can you post an example of where you want the function completions?

atomi avatar Oct 02 '13 17:10 atomi

Right now I'm using ST2 with the development release of the ColdFusion Package.

If I try to write:

<cfset myTagList = structKeyList(myTagStruct)>

ST won't complete or suggest anything while writing the structKeyList function.

If I'm using the cfscript-Tag, it suggests structKeyList and complets it with: structKeyList(structure).

<cfscript>
    myTagList = structKeyList(myTagStruct)
</cfscript>

EDIT: Only in the development release...in the master release it works.

haussjonas avatar Oct 02 '13 17:10 haussjonas

Thanks for the update, I'll check it out in a day or two.

atomi avatar Oct 02 '13 22:10 atomi

I'm seeing this same issue on ST3. My is slightly different though. Follow these steps to duplicate:

  1. Create a new .cfm file.
  2. Type <cfif structKeyE and press Enter. You can tab through and set your arguments as expected.
  3. Create a new .cfc file.
  4. Type <cfif structKeyE and there are no code hints whatsoever on the structKeyExists function.

It seems that the code hints for CFCs and CFMs are completely different, and they should be the same.

danshort avatar Oct 07 '13 15:10 danshort

@danshort Thanks

atomi avatar Oct 07 '13 19:10 atomi

I can confirm this problem in ST2. Has anyone made any progress on the solution?

JamieMcBurney avatar Mar 04 '14 18:03 JamieMcBurney