jeffkenton
7a86aad095
Tweaks to make some test cases pass.
2013-05-15 17:44:13 -04:00
jeffkenton
6c365999bc
Use tern jump-to-definition search for QuickEdit.
2013-05-15 16:11:32 -04:00
dloverin
e9ec1993a5
Merge branch 'master' into fix-guesses
2013-05-15 12:48:07 -04:00
dloverin
8142ccdeb6
Fix a bug where the hinter was not failing over to gueses. Added code to Session.getHints to detect when guesses are needed so the caller can get the guesses from tern and call getHints again.
2013-05-15 12:37:43 -04:00
Erik Tierney
05e7252fce
Fix crash when hinting with angular.js.
...
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
2013-05-15 10:37:34 -04:00
Narciso Jaramillo
9b2e9c4611
Merge pull request #3822 from adobe/dangoor/3589-underscore-names
...
Fix 3589 sort _ names to the bottom.
2013-05-14 15:50:09 -07:00
Peter Flynn
9aba45c02c
Merge pull request #3588 from adobe/dangoor/prefer-prefix
...
Add QuickOpen / StringMatch options for strongly preferred prefix and unsegmented search weighting.
2013-05-14 15:32:19 -07:00
dloverin
1c0da37ba2
apply file exclusion to the current directory
2013-05-14 16:53:21 -04:00
Erik Tierney
dfb35c30f5
Update tern and acorn to latest - fixes a number of bugs.
...
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.
2013-05-14 14:34:06 -04:00
Kevin Dangoor
9672c7e19d
Fix for #3589 . In code hints, sort leading _ names to bottom.
...
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.
2013-05-14 12:42:16 -04:00
Erik Tierney
e30c71f969
Don't need to call initializeSession from unittests anymore
2013-05-14 12:37:13 -04:00
Erik Tierney
a637bd0575
Merge branch 'master' into html-hint-bug
...
Conflicts:
src/extensions/default/JavaScriptCodeHints/ScopeManager.js
2013-05-14 11:09:51 -04:00
Erik Tierney
72b3669769
Only init a Session for html & js files
2013-05-14 11:00:43 -04:00
Erik Tierney
b017d7f1d5
Fix JSCodeHint tests so they pass when running all tests.
...
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.
2013-05-14 10:38:33 -04:00
dloverin
432ae558b9
Merge branch 'jump-to-def-tests' of https://github.com/eztierney/brackets into eztierney-jump-to-def-tests
2013-05-13 17:05:16 -04:00
Erik Tierney
3bc2bd8bd8
Fix hinting so it always works in an HTML file.
...
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.
2013-05-13 16:51:51 -04:00
dloverin
7288348147
prevent entering doEditorChange while it is waiting to complete
2013-05-13 16:45:00 -04:00
Kevin Dangoor
89ba0925e9
Merge branch 'master' into dangoor/prefer-prefix
...
Conflicts:
src/extensions/default/JavaScriptCodeHints/main.js
2013-05-13 14:33:22 -04:00
dloverin
7d827e643c
fix typo
2013-05-13 11:40:44 -04:00
Erik Tierney
6e5bce81b4
Make unittests for jump-to-def work when jumping to a new file.
...
Register a fake FILE_OPEN command with the command manager, since that's what the jump-to-def code will call to switch files.
2013-05-13 10:08:31 -04:00
dloverin
67e615c866
fixup for moved index.hmtl file
2013-05-13 09:02:27 -04:00
dloverin
89dc059bc5
move ./test/index.html to ./unittest-files/basic-test-files
2013-05-13 08:44:59 -04:00
dloverin
47de2cb19c
Merge branch 'master' into load-subdirs
2013-05-13 08:29:31 -04:00
dloverin
3f4314ba55
cleanup
2013-05-13 08:22:09 -04:00
dloverin
cb5572ce04
handle getting guesses in the completions message and remove the properties message
2013-05-13 08:18:35 -04:00
Erik Tierney
5b0c47008a
Add @return jsdoc annotation
2013-05-10 16:24:11 -04:00
Erik Tierney
dfdff356a6
Fix Issue #3614
...
Don't hint on function, parameter, or variable declarations.
no hints for
var fo// we used to pop up hints here
2013-05-10 16:00:16 -04:00
dloverin
0558c97cf7
Merge pull request #3740 from jodyzhang/mywork4
...
add new test cases
2013-05-10 10:19:46 -07:00
dloverin
dc9aba5fca
Merge branch 'master' into load-subdirs
2013-05-10 12:43:28 -04:00
dloverin
f2ba60c17f
load additional files if the loaded files are not using modules.
...
refactored unittest files.
2013-05-10 12:34:17 -04:00
Erik Tierney
678ae5aed0
Code review cleanup - mostly in the unittests
2013-05-09 14:54:40 -04:00
Erik Tierney
c162a75dc8
Merge branch 'master' into html-script-hinting
2013-05-09 14:25:58 -04:00
jzhang
fbf2437740
add new test cases
2013-05-07 14:50:46 -04:00
Erik Tierney
7882eac4f6
Fix Issue #3632
...
Only replace the 'fn' in the function type hint if the token that was called looks like an identifier/property. If it is an expression, resulting in a function call, then just display 'fn' since we don't have a way to determine a 'name' for the called function.
2013-05-07 14:20:19 -04:00
Randy Edmunds
e73a877ee6
change deprecated .className to .type
2013-05-05 11:25:25 -07:00
Randy Edmunds
f4508c2fa7
revert submodule changes
2013-05-05 10:50:04 -07:00
Randy Edmunds
53bf87ed22
Revert "Merge pull request #3697 from jeffslofish/Issue-3676"
...
This reverts commit 9e99101057 , reversing
changes made to a9e27717f4 .
2013-05-05 10:46:07 -07:00
Jeffrey Fisher
0904c5de19
Changed one instance of the depreciated ".className" to ".type" that were being used on objects returned from the getTokenAt() method that was missed during a merge.
2013-05-04 22:31:12 -07:00
Jeffrey Fisher
b624d60f5f
Merge branch 'master' of https://github.com/adobe/brackets into Issue-3676
...
Conflicts:
src/extensions/default/JavaScriptCodeHints/Session.js
2013-05-04 11:28:47 -07:00
dloverin
3ec230c473
Merge pull request #3623 from eztierney/update-tern
...
[JS Code Hints] Update tern - fixes #3606 , #3605
2013-05-03 12:04:57 -07:00
Erik Tierney
84c239cf39
Merge branch 'master' into html-script-hinting
...
Fixup branch so it will merge cleanly again.
Conflicts:
src/extensions/default/JavaScriptCodeHints/unittests.js
2013-05-03 14:50:57 -04:00
Narciso Jaramillo
984ed97ddd
Hack yet another place where we need to use _codeMirror.replaceRange() in code hints to make them work in inline editors because of #1688 .
2013-05-03 10:30:35 -07:00
Erik Tierney
a5b7100bd8
Merge pull request #3692 from dloverin/first-hint-perf
...
prime pump to improve first hint performance
2013-05-03 10:16:06 -07:00
Erik Tierney
8ebdaaec8d
Update acorn and tern.
...
Acorn is now version 0.2 and tern is 0.1
2013-05-03 11:45:17 -04:00
Erik Tierney
5d7dc76dfb
refactor HTMLUtils.findStyleBlocks to find arbitrary blocks.
...
The js code hinting code needed to find script blocks, so refactor the style block code to find any kind of block, and call that instead of having another copy of the code. findStyleBlocks now just calls the generic method, looking for "css" blocks.
Also fixed up the block finding code to handle empty blocks, which I ran into when looking for "javascript" blocks.
2013-05-03 11:29:43 -04:00
dloverin
d8b960d12f
Merge pull request #3598 from eztierney/iss-3511
...
[JS Code Hints] Fix Issue #3511
2013-05-03 08:19:29 -07:00
Erik Tierney
046cb6bb63
Forgot to add new test file
2013-05-03 10:00:06 -04:00
Erik Tierney
9416e75828
Add tests for jscodehints in an html file.
...
Also fix some bugs with jump-to-def and function type hints uncovered by the tests.
2013-05-02 16:28:40 -04:00
Erik Tierney
0755c30d58
Basic support for code hinting in html files.
...
For HTML files, we replace the HTML sections with whitespace, leaving only the text of the script tags for Tern to see.
This way the offset/cursor positions don't need to be translated, which would be necessary to get jump-to-def to work.
2013-05-02 16:28:39 -04:00
Jeffrey Fisher
c81d79ad4a
Changed all usages of the depreciated ".className" to ".type" that were being used on objects returned from the getTokenAt() method. There are many ".className" references that refer to the name of the CSS class, and all these were left alone. Also, any uses of ".className" in the third party code was left alone as well.
2013-05-01 19:09:25 -07:00