Variables and functions defined by user are not shown in code assist. They are also not displayed in outline.
Steps to recreate problem:
1. create blank js file
3. Paste following sample code:
4. on empty line after function, invoke content assist by pressing ctrl + space
Only items from JS core are displayed. There are no items from current file. Attached file shows displayed content assist. "foo" should be one of the proposals, but is not.