src/extensions/default/JavaScriptCodeHints/Preferences.js
New class to parse JSON preferences object and store preferences.
src/extensions/default/JavaScriptCodeHints/ScopeManager.js
Look for preference file, .jscodehints, in the project root directory.
Remove obsolete "shouldPrimePump" parameter.
src/extensions/default/JavaScriptCodeHints/main.js
Remove obsolete "shouldPrimePump" parameter.
src/extensions/default/JavaScriptCodeHints/unittests.js
Add new preference tests.
Add new preference tests under unittest-files/preference-test-files
Don't update the modified range when 'null' keys (ctrl-space) are hinted.
modified: src/extensions/default/JavaScriptCodeHints/main.js
When changing files, reset documentChanges to null.
modified: src/extensions/default/JavaScriptCodeHints/unittests.js
Restore that content of a file after each test.
Update a test to wait for hints after it asks for hints. If the hints are not waited for the editor will be torn down before the hint completes, causing a null pointer exception.
We are currently experiencing problems analyzing ember.js, so excluding it until we can get those worked out. Also adding a max file size limit of 500k.
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.
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.
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