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

Bug 479066

Summary: Hover can set the wrong search scope
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 10.0   
Target Milestone: 10.0   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Rennie CLA 2015-10-05 14:34:08 EDT
The code in hover.js to set the search scope is incorrect:

if(Array.isArray(meta.parents) && meta.parents.length > 1) {

it should be checking if there is at least one parent (not two), and we should handle the case of no parent (set the file itself as the search scope).