If we don't call terminate on the worker, it appears that the worker, and all the memory it's using will never get collected. So when we were switching projects, we were leaving behind orphaned workers, resulting in a large memory leak.
To enable re-initing the web worker I had to change around the logic - now the worker sends a message when it is done being init'ed and the main thread waits for that message before it starts sending messages to the workers.
Adds a handleWideResults to hint responses (only active for function signature hints right now).
The CodeHintList changes the styling and behavior a bit to suit.
1. MultiRangeInlineEditor.js: simplified conditional, as requested.
2. ScopeManager.js: move function getResolvedPath before its use, to make JSLint happy.
3. QuickEdit/main.js: move functionName null check to calling routine for cleanliness.
Things not yet done:
1. QuickEdit/main.js: consolidation of fallback paths.
2. QuickEditHelper: communication between extensions. Short vs. long term solutions.
Updated to a version of tern that fixes the bug.
Take out the excludes of minified libraries, as they all work now that the bug is fixed.
Stil exclude require and jquery files since we have json defs files for those that have better type information.
Fixes Issue #3827
Modified some of the expected output for unittests as tern was updated to produce arguably better results, particularly for jump-to-def.
Changed the jump to def logic so that it doesn't stomp on all the pending requests, and instead plays nicely with the other request types.
This also alters StringMatch.multiFieldSort to use an array to define the sort order,
though I stopped short of deprecating the old { key: priority } format.
One of the promises the code hinter was waiting for internally was never being resolved because the directory it was looking for didn't exist. Now resolve the promise even when the director doesn't exist so we don't just hang.
We were not creating a Session if the language of the selection was not javascript. So when opening an html file, if the cursor wasn't in a javascript section, we would get no hints.