| Summary: | Contribute Tern index files for JS content assist | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Client | Assignee: | Mark Macdonald <mamacdon> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | m.sridharan |
| Version: | 5.0 | ||
| Target Milestone: | 5.0 M2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Mark Macdonald
Here's the commits that added the basic support:
> * b244079 2014-01-10 | [Bug 425054] register index files for redis, postgres, mysql
> * 7cd5537 2014-01-10 | [Bug 425054] Add TypeDefs support to editorView and contentAssist
> * 314371f 2014-01-09 | [Bug 425054] Add service API for contributing type definitions: orion.core.typedef
> -Add TypeDefRegistry
> -Expose typeDefRegistry to Editor Context
> * a78ab50 2014-01-10 | JS content assist: load built-in Type Defs as modules, not XHR
> * 4c1561f 2014-01-09 | Bugfix in serviceTracker "onServiceAdded", unit tests
I'm still working on getting the JS content assist provider to load the indexes and activate them when require()d.
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=dd22aae Sort of working. At the moment you still need the /*jslint node:true*/ flag enabled for it to use the available indexes. For example: > /*jslint node:true*/ > require("mysql"). > ^ put caret here and hit ctrl+space for content assist on the library You also have to reload your plugins to pick up the index metadata. Resolving this bug. We can open targeted bugs for remaining problems in the index files, type inferencer, etc etc etc etc etc etc |