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

Bug 489692

Summary: Open declaration/Open implementation should give explanation when result was from an index file
Product: [ECD] Orion Reporter: Curtis Windatt <curtis.windatt.public>
Component: JS ToolsAssignee: Curtis Windatt <curtis.windatt.public>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 12.0   
Target Milestone: 12.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 484510    

Description Curtis Windatt CLA 2016-03-15 17:29:52 EDT
When you run open declaration / open implementation:
1) Finds a result and takes you there
2) Didn't find a result and says so
3) Has an error and posts that error

If you run openDecl on a function that is specified in an index (such as express().use()) Tern will be able to guess the origin ('express').  However, we can't take the user to that origin as it is not a file in their workspace.  Right now we just display (2).  I'm proposing we display a new message (4) 'foo()' is declared in an index, not in the workspace.
Comment 1 Curtis Windatt CLA 2016-03-16 13:48:34 EDT
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=5aaf7c2f23e87059b5b6b4f98834eabc46e98bb4
Fixed in master with tests

Open impl doesn't work because of Bug 484510.