Commit Graph
21 Commits
Author SHA1 Message Date
Ingo Richter b856768671 - fix for https://github.com/adobe/brackets/issues/6931
The fix is to cutoff the leading slash on a module name.
Test is not working due to issues with the ProjectManager and the missing projectRoot
2014-02-27 18:21:32 -08:00
dloverin 794c5d1ad8 improve error handling 2013-08-01 21:05:09 -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 9e15de2eb7 Function Hints 2013-08-01 21:05:06 -04:00
Erik Tierney 35821e69db Fix problem with finding next token on next line.
Don't set the selection until we have done the final jump-to-def
should address comments in issue #3863
2013-06-20 10:36:40 -04:00
Jason San Jose b9d69228bc Merge pull request #4205 from dloverin/jody-test3
Jody added some new code hint tests
2013-06-17 13:46:03 -07:00
Erik Tierney 0f73f04bcc Added unit test for jumping to a function in exports.
Modified _waitForJump to wait until the jump promise is done, rather than checking that the cursor had changed.
Updated 1 other test which was looking at everything that was exported from the test module.
2013-06-17 14:50:16 -04:00
dloverin 8df8808553 Merge branch 'test3' of https://github.com/jodyzhang/brackets into jody-test3
Conflicts:
	src/extensions/default/JavaScriptCodeHints/unittests.js
2013-06-10 11:25:44 -04:00
dloverin fccdb12b02 do not wrap regular expresssions in '^' and '$', only strings. 2013-06-10 09:03:06 -04:00
dloverin d65fbdcacf Allow preferences to be overridden by a configuration file.
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
2013-06-07 08:51:05 -04:00
dloverin cb8a0e9746 Implement requests with partial file text to reduce memory usage for large files.
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.
2013-05-30 14:47:58 -04:00
jzhang 3dfead4e05 add new test cases 2013-05-24 16:18:10 -04:00
dloverin 8642920d8c fix hinting on non-ascii characters 2013-05-17 07:43:08 -04:00
jzhang bd4feb5611 add more code hint tests for html file and module file 2013-05-16 14:45:36 -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
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
dloverin 47de2cb19c Merge branch 'master' into load-subdirs 2013-05-13 08:29:31 -04:00
dloverin cb5572ce04 handle getting guesses in the completions message and remove the properties message 2013-05-13 08:18:35 -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