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

Bug 505723

Summary: Cannot find declaration for 'this' in same file
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: 13.0   
Target Milestone: 13.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Michael Rennie CLA 2016-10-11 10:33:47 EDT
Open the scriptResolver.js file in the JavaScript project, and hover over 'this' in the _getFile function. Instead of jumping a little bit up the file to the constructor (which is correctly shown as a doc hover for 'this'), you are presented with a status banner with the following:

Declaration was not found in source, it was found in the '/file/org.eclipse.orion.client/bundles/org.eclipse.orion.client.javascript/web/javascript/scriptResolver.js' index.
Comment 1 Michael Rennie CLA 2016-10-13 16:04:27 EDT
bug 505918 is related to this, both exhibit the same problem of showing a js file as an index.
Comment 2 Michael Rennie CLA 2016-10-17 14:19:40 EDT
Fixed with new tests in:
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=383bd11ec59289c39f87264d25f3862c4468cd81

All tests pass.