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

Bug 483623

Summary: ESLint-env content assist should auto open content assist with list of environments
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: 10.0   
Target Milestone: 11.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Curtis Windatt CLA 2015-12-03 17:21:20 EST
When completing eslint-env directive we insert the word 'library' and select it.  If you activate content assist we provide a list of environments.  To make this more discoverable, content assist should auto open when you use the template.
Comment 1 Curtis Windatt CLA 2015-12-03 17:26:52 EST
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=94ce215c0d6ea08fead54fa697a875a2a31e5a71
Applied first cut of this fix

This uses a set list of environments for the template processor which auto opens a content assist like drop down when the template is chosen.  This only works when you are already in a comment block.

There is another template in templates.js for eslint-env that applies when outside of a comment block.  We can do something similar there, but as the env list can't be calculated until Tern is running I can't simply modify the hard coded template.
Comment 2 Curtis Windatt CLA 2016-02-02 15:49:55 EST
With .tern-project file support being fully implemented, there is much less need for this.  Marking as FIXED as the main portion of the fix is already in.