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

Bug 457755

Summary: Support type inferencing for JavaScript in HTML files
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 8.0   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Rennie CLA 2015-01-16 15:07:34 EST
To be able to effectively use content assist, hovers and quick fixes in HTML script blocks we need to be able to infer the source. We could do this individually for each script block - the way we do for linting in HTML now - but all blocks should really be treated like one file. 

To do this we could use our Finder#findScriptBlocks code to help create a dummy compilation unit that could be parsed, inferred and used the same way as a 'normal' JavaScript source file.
Comment 1 Michael Rennie CLA 2015-01-27 15:17:32 EST
Fixed in:

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=6b23a8e2f66410852441710aab2ee5053158f9d0

I also hooked up content assist to work in script blocks.

All 1570 tests pass.