Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 418861

Summary: Provide simpler code navigation
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: curtis.windatt.public
Version: unspecified   
Target Milestone: 7.0   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 427299    
Bug Blocks: 450152    

Description Michael Rennie CLA 2013-10-07 14:49:31 EDT
It would be helpful to have some sort of in-editor navigation similar to the Java navigation in Eclipse:

1. click to see containing object, etc (like hyperlink nav in Eclipse)
2. be able to see the prototypal chain quickly (like F4 in Eclipse)
3. keybinding to open containing object (like F3 in Eclipse)
Comment 1 John Arthorne CLA 2014-08-28 12:49:16 EDT
*** Bug 423096 has been marked as a duplicate of this bug. ***
Comment 2 John Arthorne CLA 2014-08-28 12:51:17 EDT
An important use case here is support to jump to a declaration outside the current file. I.e., jump the editor to a location in another related file. In HTML this could be used to support jumping from HTML file to related CSS/JS files.
Comment 3 Eric Moffatt CLA 2014-11-20 14:57:46 EST
The current code fires off the hover in too many circumstances IMO. It'll *always* show the open hover for the file to the left of the cursor (even when the cursor is off the end of the line).


If I have the following with the cursor at the '^' I get the open hover for Event Target:

define([
   'orion/EventTarget',  ^ 'orion/util',    'orion/webui/littlelib'

For me we want to limit the display to when the cursor is actually *inside* one of the file specs (i.e. between the quotes) so we don't 'accidentally' show it as often.
Comment 4 Michael Rennie CLA 2014-11-20 15:38:41 EST
(In reply to Eric Moffatt from comment #3)
> The current code fires off the hover in too many circumstances IMO. It'll
> *always* show the open hover for the file to the left of the cursor (even
> when the cursor is off the end of the line).
> 
> 
> If I have the following with the cursor at the '^' I get the open hover for
> Event Target:
> 
> define([
>    'orion/EventTarget',  ^ 'orion/util',    'orion/webui/littlelib'
> 
> For me we want to limit the display to when the cursor is actually *inside*
> one of the file specs (i.e. between the quotes) so we don't 'accidentally'
> show it as often.

Yeah, thats pretty annoying.

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=a83f0d017466cb26fd9b07bd649ddcca933f8aa5
Comment 5 Michael Rennie CLA 2015-05-08 10:15:32 EDT
This feature has been in Orion since 8.0, and we have provided open decl (F3 support) in bug 427299. We can open enhancements / bugs in their own reports.