Add large comment to file1.js test file so it will be considered a large file and partial text updates can be tested.
For now, move two failing tests apart so they pass. Partial text updates are notas good a full text updates but save memory.
This avoids some memory leaks that we were encountering. Still looking into those, but this should at least stabilize things and prevent the memory from growing so much it crashes brackets.
To avoid a noticeable performance hit when we restart the worker, we instead start a new worker, and only switch to it after it has finished intializing (including priming the pump). So when we switch between the old and new worker it should be unoticeable to the user.
Had to move around a lot of code in ScopeManager - there are not a lot of actual changes, but the diff is messy due to this.
- Now can register multiple jump-to-definition providers (only one, so far).
- Moved jump-to-definition menu setup to top level.
- Added jump-to-definition to floating right-click menu. [ Note: we may not want
this unless there is a provider registered for the current mode, but that's how
QuickEdit does it. We can fix both at the same time if we decide to. Also note
that if we want to change the right-click menu for this, one could argue that we
should also change the top level menu for the same reason. ]
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.