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

Bug 512587

Summary: Module name completions are incorrect
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: 13.0   
Target Milestone: 14.0   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Screen shot none

Description Michael Rennie CLA 2017-02-22 14:59:41 EST
Created attachment 266947 [details]
Screen shot

Steps:

1. create a JS file with the following contents:

  var lib = require('');

2. put the caret in the string literal in the require call and activate content assist

At this point, you should see the names of any built-in libraries, but you actually wind up getting functions in there (BAD) and the module names are objects (BAD)
Comment 1 Michael Rennie CLA 2017-02-22 15:10:43 EST
Fixed in:

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=36591e358c51ca2c685f07589528ca0d048b3104

The type was not being set correctly for the proposals.