Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for dot notation method 'Goto Definition' similar to invoke notation. #123

Open
NjnaGrimsdottir opened this issue Aug 27, 2018 · 1 comment

Comments

@NjnaGrimsdottir
Copy link

Currently the system supports right clicking on the method name and doing Goto Definition such as in code like:

<cfinvoke 
 component="Portals"
 method="GetPortalType"
 returnvariable="nPortalResponse">
	<cfinvokeargument name="PortalID" value="#FORM.PortalID#">
</cfinvoke>

Would it be also possible to support the same functionality if that method were being called via:

<cfset var oPortals = createObject("Portals")> 
<cfset nPortalResponse = oPortals.GetPortalType(PortalID=FORM.PortalID)>

and then right clicking on the 'GetPortalType' part of the call above.

This is likely more difficult to determine type since it's not clearly defined as 'method'.

Just an idea since that functionality is wonderful.

@jcberquist
Copy link
Owner

I agree that Goto Definition is wonderful, and it is actually a core Sublime Text feature. I would have expected that you could right click on "GetPortalType" in either example and it would have offered you the "Goto Definition" option in the menu. At least, if it worked in one case it ought to work in the other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants