Erik Tierney
2e357e63fe
Merge branch 'master' into js-code-intelligence
...
Conflicts:
src/extensions/default/JavaScriptCodeHints/ScopeManager.js
2013-04-12 18:23:37 -04:00
Peter Farland
ec9a5afa83
Remember the resolved path we used with tern so that jump to definition across files work. Also clean-up some error conditions when the definition location is not known.
2013-04-12 16:51:35 -04:00
Erik Tierney
aeee6aaa06
If we can't find a file relative to the current dir, look relative to the project dir.
2013-04-12 16:07:04 -04:00
Erik Tierney
05e0640154
Update tern to pick up a bugfix around Object properties
2013-04-12 15:16:14 -04:00
Erik Tierney
e46d260a09
Get all unit tests passing
...
Fix a caching problem where old hints were getting used.
Update selection tests to search for the index to insert instead of hardcoding the index so the tests are less fragile.
2013-04-12 15:14:26 -04:00
jeffkenton
51edab6185
Fix Jump-To-Definition bug: trying to open new file when search fails.
2013-04-12 13:42:59 -04:00
Erik Tierney
5e11b5abf1
Updates to expected results.
2013-04-12 13:30:11 -04:00
Erik Tierney
1c62677c18
Move tern and acorn submodules into thirdparty directory.
2013-04-12 13:27:04 -04:00
Erik Tierney
40e159981a
Remove tern and acorn from current location
2013-04-12 13:27:04 -04:00
jeffkenton
0bab9dc3fd
Make Jump-To-Definition switch to new file when definition isn't local to current file.
2013-04-12 11:17:32 -04:00
Erik Tierney
cf26938891
Update to newest tern to pick up some bugfixes
2013-04-12 10:26:54 -04:00
Erik Tierney
ee2dd1d518
Fix for issue when multiple requests were made
...
Were creating a new Promise for each request, but only resolving the last one. Now check to see if we already have a promise for a particular request, and return the already existing one if there is one.
2013-04-11 16:31:36 -04:00
Erik Tierney
c3919edd08
Fix timing problem.
...
Could end up requesting completions before the tern server was initialized.
Use a $.Deferred so that we don't request any hints until we know the server has been initialized.
2013-04-11 15:49:07 -04:00
Erik Tierney
8131900e9b
Some unit test cleanup
2013-04-11 15:49:07 -04:00
Erik Tierney
fa2bebcfa0
Cleanup - mostly deleting unused code
2013-04-11 15:49:07 -04:00
dloverin
c097d198f6
log error for tern 'type' request
2013-04-11 15:20:44 -04:00
Erik Tierney
87de92de12
Hook up initial requirejs support.
...
Sync to new version of tern, which has support for simplified common JS modules, which brackets uses.
Enable the requirejs tern plugin. Had to modify how we deal with file paths a bit - we were leaving in the leading '/', which made things look like an absolute path, and then tern would view '/test.js' as a different file than 'test.js'.
Some cleanup - add logging for errors from tern, delete some old commented out code.
2013-04-10 09:49:56 -04:00
dloverin
7d52361aa7
Add StringUtils.htmlEscape() back in.
...
Remove "types" from a tern query since types are not hinted for identifiers or properties.
2013-04-09 14:35:29 -04:00
jeffkenton
42ad4f7979
Cleanup grunt complaints.
2013-04-09 09:09:04 -04:00
jeffkenton
7bb13cea85
Code cleanup from Erik's review.
2013-04-08 16:46:52 -04:00
Ian Wehrman
9bb2a46dbf
Remove cruft from the outdated stats-gathering branch.
2013-04-08 13:27:01 -07:00
jeffkenton
af9a7f01ab
Added Goto Definition.
2013-04-08 15:50:11 -04:00
Erik Tierney
bef501fda0
Update to latest tern - fixes issue #3
2013-04-08 09:29:23 -04:00
Erik Tierney
d5453276e1
fixes #2 and #4 - function type hinting
...
Display the called properties name instead of "fn".
don't display "?" if the function type could not be determined.
2013-04-05 16:04:29 -04:00
Erik Tierney
ecfb080fd1
Remove left over debugging code
2013-04-05 14:08:54 -04:00
Erik Tierney
aab1d58ef8
more grunt cleanup
2013-04-05 13:25:34 -04:00
dloverin
9d56227b15
remove requestProperties
2013-04-05 13:00:25 -04:00
dloverin
dac2002e04
Add guesses to code hints
2013-04-05 13:00:25 -04:00
dloverin
c887e8760f
new guessing
2013-04-05 12:51:39 -04:00
Peter Farland
d371c0f916
Fix JSHint warnings and exclude tern and acorn related files from grunt.
2013-04-04 22:48:21 -04:00
Erik Tierney
7ed099f928
Update submodule to latest tern
2013-04-04 11:16:50 -04:00
Jason San Jose
0315b1629d
Add suite param option to SpecRunner and to grunt test-integration task. Fix bug in NativeFileSystem where an empty dir will list the entire disk contents.
2013-04-03 16:38:41 -07:00
Erik Tierney
c1f1e4498a
Update to latest tern and acorn
2013-04-03 14:18:19 -04:00
Erik Tierney
98e37b1d1e
Merge branch 'master' into tern-experiments
...
Conflicts:
src/extensions/default/JavaScriptCodeHints/HintUtils.js
src/extensions/default/JavaScriptCodeHints/ScopeManager.js
2013-04-03 11:30:12 -04:00
Erik Tierney
63c89f4d62
Add support for hinting function types.
...
When in a function call, display the function type instead of the normal hints. This only happens when nothing has been entered by the user - if the user starts typing, then we switch back to the normal hints based on what the user has typed.
This also requires a new version of CodeMirror that brackets has not updated to. The old hints continue to work without the new version, but the function types will only work once codemirror is updated.
2013-04-02 17:58:05 -04:00
Erik Tierney
08f356c649
Merge pull request #5 from dloverin/cleanup-esprima
...
Remove espirma and related scope info code
2013-03-29 13:28:17 -07:00
dloverin
0746864409
Remove espirma and related scope info code
2013-03-29 16:08:20 -04:00
Erik Tierney
8a6d29fbc4
Merge pull request #4 from dloverin/more-tern
...
More tern
2013-03-29 12:02:07 -07:00
dloverin
9bf0b9f7d2
fix bug where no hints would be provided after '('
2013-03-29 14:53:55 -04:00
dloverin
01f6b2c496
add browser.json to tern environment by default
2013-03-29 14:52:16 -04:00
dloverin
bf7404aa6d
Add alphabetical secondary sort when bringing prefix matches to the top
2013-03-29 14:50:52 -04:00
dloverin
d947130020
Add alphabetical secondary sort when bringing prefix matches to the top
2013-03-29 14:48:50 -04:00
Erik Tierney
9a21f42245
Add license file for requirejs
2013-03-29 13:57:06 -04:00
Erik Tierney
4e6c8f5091
Update to tern with getfile fixes
2013-03-29 08:47:28 -04:00
Erik Tierney
98d05fd296
Update to version of tern with bugfixes to avoid hang when requesting files
2013-03-28 17:05:29 -04:00
dloverin
a0ee374651
fix bug where hints disappear after first key press
2013-03-28 16:25:01 -04:00
dloverin
7ac5459e6a
fix bug where hints disappear on first character
2013-03-28 16:21:24 -04:00
dloverin
7bfaedfa0a
Use tern to sort ids by depth, remove scope info
2013-03-28 15:06:15 -04:00
Bernhard Sirlinger
04d63b1fae
Use language id
2013-03-27 23:48:52 +01:00
Erik Tierney
33579f69d2
roll back tern submodule to avoid hang
2013-03-26 16:08:39 -04:00