Commit Graph
30 Commits
Author SHA1 Message Date
dloverin cb5572ce04 handle getting guesses in the completions message and remove the properties message 2013-05-13 08:18:35 -04: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
Randy Edmunds e73a877ee6 change deprecated .className to .type 2013-05-05 11:25:25 -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 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
Erik Tierney 6c0a350176 JSCodeHinting - Find requirejs modules even when project root doesn't match the requirejs root.
Looks for any files that end with the name of the module we're looking for.  Does not do any tie breaking yet, but this gets the requirejs support working when you open the 'brackets' dir for instance, instead of the 'brackets/src' dir.
2013-04-23 13:14:16 -04:00
dloverin cb96db453c Fix regressions in the display of literals and keywords in code hints.
1. keywords should be monospace.
2. literals should be dark grey.
2013-04-19 09:40:47 -04:00
dloverin f6a073ca3d When typing, only automatically show hints for the "." character and JS identifier characters. 2013-04-17 17:29:48 -04:00
Erik Tierney daa64a3f3a cleanup from code review
fixed type, delimeter -> delimiter
don't need to escape single quote in double quoted string
2013-04-16 08:48:12 -04:00
dloverin e0c551d624 remove unused hinting for globals 2013-04-15 10:38:59 -04:00
Erik Tierney d96d73d895 cleanup jslint warnings 2013-04-15 09:43:37 -04:00
dloverin a2598a9753 sort library globals below user globals
turn on query.guess to get previously used properties of unknown types
turn on query.origins to get categorize library globals vs. user globals
turn on query.expandWordForward to fix hasOwnProperty bug.
2013-04-12 21:00:17 -04:00
Erik Tierney fa2bebcfa0 Cleanup - mostly deleting unused code 2013-04-11 15:49:07 -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
jeffkenton af9a7f01ab Added Goto Definition. 2013-04-08 15:50:11 -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
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
dloverin 0746864409 Remove espirma and related scope info code 2013-03-29 16:08:20 -04:00
Bernhard Sirlinger 04d63b1fae Use language id 2013-03-27 23:48:52 +01:00
Erik Tierney 412dedf919 Move tern server into a web-worker.
Had to add requirejs to the extension to make everything work in a web-worker.
Added tern-worker.js, and modified ScopeManager to post messages to the worker to find completions.
2013-03-26 13:22:39 -04:00
Joel Brandt 1f1d074180 more doc fixups 2013-02-26 09:53:54 -08:00
Joel Brandt bc8d9d8e2a more fixes to jsdocs 2013-02-26 06:16:30 -08:00
Ian Wehrman c8b53c7153 type capitalization typos and additional JSDoc annotations 2013-02-25 17:53:00 -08:00
Ian Wehrman c0e75bcc7e Add remaining JSDoc annotations 2013-02-24 12:45:58 -08:00
Ian Wehrman 27b7dce115 Address initial comments and suggestions from code review by @rlim. 2013-02-21 11:01:14 -08:00
Ian Wehrman 9c371fc518 Add built-in global objects, and a TODO to also add built-in global properties and associations. 2013-02-15 14:03:27 -08:00
Ian Wehrman 786cd23bce Add the JS code hinter as a default extension. 2013-02-14 15:59:12 -08:00