Commit Graph
7 Commits
Author SHA1 Message Date
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
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
Erik Tierney 5435d4092e Merge pull request #4177 from dloverin/pref-regexp-fix
do not wrap regular expresssions in '^' and '$', only strings.
2013-06-14 06:32:54 -07:00
Erik Tierney 34601065ce Update tern & acorn
tern is now 0.2
acorn is now 0.3
remove exclusion for ember.js, as it seems to be fixed with the latest tern
2013-06-13 09:46:03 -04:00
dloverin fccdb12b02 do not wrap regular expresssions in '^' and '$', only strings. 2013-06-10 09:03:06 -04:00
dloverin 759c3cd088 preferences for 'excluded-directories' and 'excluded-files' always append to the builtin defaults 2013-06-07 11:37:58 -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