Commit Graph
308 Commits
Author SHA1 Message Date
Ian Wehrman aa4d67932d Bump Tern SHA to fix a doc parsing bug 2013-10-23 09:28:40 -07:00
Jeff Booher 8ca47a58a7 Merge pull request #5527 from adobe/pflynn/trailing-slash-cleanup
Better compartmentalize code that assumes no trailing "/"
2013-10-22 10:17:33 -07:00
Kevin Dangoor a855576b13 Merge pull request #5492 from gmeluski/bug/5479-unit-test-fix
Change not.toBeNull() to toBeTruthy() in unit tests
2013-10-18 05:48:13 -07:00
Ian Wehrman ab96f8c372 Remove superfluous StringUtils requires 2013-10-16 19:56:18 -07:00
Ian Wehrman a8e657fa5d Replace CollectionUtils.indexOf, some, forEach and hasProperty with _.findIndex, some, foreach and has, respectively 2013-10-16 19:56:18 -07:00
Ian Wehrman d622884ab1 Deprecate StringUtils.htmlEscape in favor of _.escape 2013-10-16 19:56:17 -07:00
Peter Flynn a9ab07c38e Incremental clean up of paths without trailing "/":
- Rename FileUtils.canonicalizeFolderPath() to stripTrailingSlash() since
it actually makes paths NOT canonical. Old API left in place with
deprecation warning for now.
- Add warning to docs for a few other APIs that return non-canonical paths:
FileUtils.getNativeBracketsDirectoryPath(), FileUtils.getNativeModuleDirectoryPath(),
ProjectManager.getInitialProjectPath(), ProjectManager.updateWelcomeProjectPath()
ProjectManager._getWelcomeProjectPath()
- Indicate explicitly which ProjectManager APIs support receiving
non-canonical paths
- Centralize code that touches welcomeProjects storage pref for clarity

What this does NOT do:
- Fix the other APIs listed above that still return non-canonical paths
- Fix non-canonical first-launch project path given to _loadProject()
- Fix non-canonical paths used in RecentProjects prefs
- Fix non-canonical paths used in welcomeProjects pref
- Fix ScopeManager, which in some places requires canonical paths and
in other places requires non-canonical paths
2013-10-14 20:40:41 -07:00
gmeluski be80ae2cca changing not.toBeNull to toBeTruthy
:
2013-10-11 15:21:54 -04:00
Kevin Dangoor 405a493d7e Load and enable the Angular plugin for Tern. 2013-10-10 22:37:41 -04:00
Kevin Dangoor 9d8f0835eb Update to Tern 0.5 and Acorn 0.4 2013-10-10 16:45:55 -04:00
Randy Edmunds dc0ed463f4 performance: do not use precise token parsing 2013-10-02 08:15:46 -07:00
Kevin Dangoor 7b40e345f7 Update Tern and Acorn to the latest 2013-09-30 11:42:46 -04:00
Randy Edmunds 90a2b3f8a7 restore handleWideResults property 2013-09-27 17:50:11 -07:00
Randy Edmunds 6850ed73e3 Merge remote-tracking branch 'origin/master' into randy/issue-5003 2013-09-27 17:20:56 -07:00
Randy Edmunds 11d73cef17 simplify fix by assuming intent is to type (not insert hint) 2013-09-26 16:44:58 -07:00
Randy Edmunds 3230fd4fa7 changes for code review 2013-09-17 15:18:57 -07:00
Randy Edmunds 903b9716bc detect pending text insertion that's not reflected in hint list 2013-09-16 12:41:15 -07:00
Randy Edmunds 364d8872c7 when deferred hints resolve, verify still in same session 2013-09-12 16:35:38 -07:00
Randy Edmunds 0b4499c819 better explanation of how session can be null 2013-09-12 15:50:01 -07:00
Randy Edmunds 3ea830d5ba fix exceptions during unit tests 2013-09-10 16:03:29 -07:00
RaymondLim fbf246a6a1 Stop appending parentheses when inserting a function. Instead, show param hints only after the open parenthesis is entered. 2013-09-04 10:03:56 -07:00
Kevin Dangoor b5d18209be Update tern/acorn to the latest 2013-08-29 08:46:57 -04:00
RaymondLim af87e0d774 Fix the unit test failure in JS Quick Edit and some typos in JSDoc. 2013-08-18 09:13:42 -07:00
Raymond Lim 5de9d5c534 Merge pull request #4637 from dloverin/fn-param-hints
Show JS parameter hint
2013-08-18 08:43:56 -07:00
dloverin 72d7b2bcec allow 'empty' updates for parameter hints 2013-08-16 06:17:20 -04:00
dloverin 0c892a988f Work around issue https://github.com/marijnh/tern/issues/207 by calling Tern.findQueryExpr() and Infer.expressionType() as suggested by marijn. The problem with this fix is it requires a "full" text update with the parameter hint request. Suggested a possible solution in the issue.
The quality of the hints has been much improved and record type annotations can be hinted correctly.
2013-08-15 22:52:31 -04:00
Jason San Jose ce59ee1bba revert acorn workaround 2013-08-13 16:14:30 -07:00
dloverin d95544d504 remove half-done feature to pop up parameter hints on '(' key 2013-08-12 11:38:25 -04:00
dloverin dd6b19d984 Add feature to hint on '(' key and fix typos 2013-08-12 10:55:24 -04:00
dloverin 388ddcfa41 change function-hint-container left and right padding from 1 to 3 2013-08-05 15:54:49 -04:00
dloverin 82dd6574ed jsdoc fixes 2013-08-05 15:29:16 -04:00
dloverin c994eafc36 Fix issue where "<no parameters>" would be hinted when Tern could not parse the jsdoc.
Fix issue where Session.getFunctionInfo could return 'inFunctionCall' as true but
'functionCallPos' would be undefined.
Fix many jsdoc problems.
2013-08-05 10:22:53 -04:00
dloverin 4969b7785f undo accidental change of tern 2013-08-02 15:01:46 -04:00
dloverin d9acb9703f fix bad merge 2013-08-02 12:57:58 -04:00
dloverin a57289b9c7 Merge branch 'fn-param-hints' of http://github.com/dloverin/brackets into fn-param-hints
Conflicts:
	src/extensions/default/JavaScriptCodeHints/ParameterHintManager.js
2013-08-02 12:51:08 -04:00
dloverin 7cc31912df fix bug in failed path of ParameterHintManager.popUpHint 2013-08-02 12:44:20 -04:00
dloverin 794c5d1ad8 improve error handling 2013-08-01 21:05:09 -04:00
dloverin b41ad227c1 HintUtils2.formatParameterHint always returns the format string 2013-08-01 21:05:09 -04:00
dloverin 3492796714 Fix exception after picking hint from code hints combo.
Clean up unittests.js and change string from "<no arguments>"
to "<no parameters>"
2013-08-01 21:05:08 -04:00
dloverin d837cd19e2 rename ScopeManager.requestFunctionHint to ScopeManager.requestParameterHint.
add unittests for HintUtils.formatParameterHint
2013-08-01 21:05:08 -04:00
dloverin 8ae1abe419 Add HintUtil2.formatParameterHint and fix bugs 2013-08-01 21:05:08 -04:00
dloverin adb56c0b58 fix unit tests and move function hint type parsing into the tern worker. 2013-08-01 21:05:07 -04:00
dloverin 5205cba81c refactor 2013-08-01 21:05:07 -04:00
dloverin a9c916726f parameter hint fixes 2013-08-01 21:05:07 -04:00
dloverin 9e15de2eb7 Function Hints 2013-08-01 21:05:06 -04:00
dloverin eceea1035d improve error handling 2013-08-01 21:02:08 -04:00
dloverin 97527908ec HintUtils2.formatParameterHint always returns the format string 2013-07-31 09:42:43 -04:00
dloverin a147ef5ded Fix exception after picking hint from code hints combo.
Clean up unittests.js and change string from "<no arguments>"
to "<no parameters>"
2013-07-30 12:03:07 -04:00
dloverin e4d8d66742 rename ScopeManager.requestFunctionHint to ScopeManager.requestParameterHint.
add unittests for HintUtils.formatParameterHint
2013-07-30 11:40:58 -04:00
dloverin 088c6c9c42 Add HintUtil2.formatParameterHint and fix bugs 2013-07-29 13:49:49 -04:00