View unanswered posts | View active topics



Reply to topic  [ 2 posts ] 
Goto Declaration (F4) Regression 
Author Message
Member

Joined: Wed Oct 17, 2018 6:27 pm
Posts: 1
Reply with quote
.NET 4.0 for FlashDevelop 5.3.3.1
Windows 10 Pro Version 1803

TL;DR: Pressing F4 on a class name does not always go to the class file, but pressing F4 on the import statement for that class does.

In an .as class that has imports to other classes, pressing F4 (or using the context menu "Goto Declaration") on a class within the code will scroll the page to the constructor of the current class not the referenced class.

In my case, com.xxx.command.mainCommands.MenuCommand.as has an import for com.xxx.command.layoutCommands.RebuildDataCommand.as. In MenuCommand, pressing F4 when RebuildDataCommand is focused goes to the constructor for MenuCommand. Finding the import statement for RebuildDataCommand and pressing F4 works.

This used to work, but it has been quite a few releases since then.


Wed Oct 17, 2018 6:42 pm
Profile
Member

Joined: Sun Oct 28, 2012 6:44 pm
Posts: 22
Reply with quote
I came here for that specific problem!

Hitting F4 on a classname inside a code block jumps to the constructor of the currently open document class file, not to the constructor of the class that is under the cursor. As you say, it works correctly on member variables and import statements.


Thu Jul 11, 2019 11:28 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.