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

Bug 458676

Summary: Auto assume 'browser' eslint environment in script blocks
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: 8.0   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Rennie CLA 2015-01-28 13:44:56 EST
Steps:

1. Open HTML page with a script block in it
2. clear localStorage and refresh the page (to make sure the index files are un-loaded)
3. type 'document.' in the script block
4. notice you do not get all of the completions from the index files.

Probably caused by the proxy editor context used by CompilationUnit.
Comment 1 Michael Rennie CLA 2015-01-28 13:56:37 EST
Digging in, I found that the indexes are being loaded, but that we are not properly auto-assuming the 'browser' environment.
Comment 2 Michael Rennie CLA 2015-01-28 14:46:26 EST
Fixed:

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=604168ef8dadcc88a161b52d4b0aa6cc786c826f

all tests pass.

I also updated our validator to auto-assume the browser env.