Kevin Dangoor
7663609a36
Update Tern and Acorn to the latest.
...
This fixes #6018 and possibly others.
2013-11-20 11:24:50 -05:00
Kevin Dangoor
0bb8c0c155
Guard against possible errors in ScopeManager.
...
These errors don't seem likely in normal use, but we're seeing intermittent failure
on the test machine which could be related.
2013-11-13 10:27:16 -05:00
Kevin Dangoor
3919761153
Merge pull request #5917 from adobe/iwehrman/simplify-js-code-hints-traversals
...
Simplify some JS code hints filesystem traversals
2013-11-12 06:45:36 -08:00
Raymond Lim
06b4012046
Merge pull request #5918 from adobe/larz/function-hint-container
...
Function hint tweak.
2013-11-11 14:56:12 -08:00
Ian Wehrman
ff7a77379e
Remove HintUtils.splitPath
2013-11-11 14:44:41 -08:00
Kevin Dangoor
4c588d32b9
Simplify setConfig in tern-worker by just using the entire new config object.
2013-11-11 15:57:40 -05:00
Kevin Dangoor
3f2ad065a0
Minor fixes in code hint test/debug code to address review comments.
2013-11-11 15:44:04 -05:00
Lawrence Hsu
fa113e5270
Function hint tweak.
2013-11-08 19:21:30 -08:00
Ian Wehrman
d87b3fc207
Remove redundant filesystem traversals
2013-11-08 17:17:35 -08:00
Narciso Jaramillo
6ca65121a0
Fix submodule SHAs
2013-11-08 17:12:31 -08:00
Wouter Franken
0d15c0cab2
merge 2
2013-11-08 23:45:04 +01:00
Kevin Dangoor
7fc2bd15cb
Re-enable some tests
2013-11-08 10:17:03 -05:00
Kevin Dangoor
f80c0c9d98
Fixes code hint tests by controlling worker resets.
...
Previously, the web worker would be restarted at somewhat random
times during test runs (after a specific number of hints was requested).
This change forces the worker to start afresh with each test and switches
the worker so that it doesn't reset during any of the tests.
2013-11-08 09:33:56 -05:00
Glenn Ruehle
d77cf167b7
More cleanup
2013-11-07 12:24:50 -08:00
Glenn Ruehle
0fd2e149dd
Respond to more review comments.
2013-11-06 16:32:15 -08:00
Ian Wehrman
004ff6931b
Merge branch 'brackets' into glenn/file-system
...
Conflicts:
src/project/ProjectManager.js
2013-11-01 17:22:32 -07:00
Jason San Jose
fce09d4c85
Merge pull request #5400 from adobe/dangoor/4922-document-methods-missing
...
Consider 2,000 lines to be a large file for hints.
2013-11-01 11:25:37 -07:00
Ian Wehrman
0942969d84
Merge branch 'brackets' into glenn/file-system
...
Conflicts:
src/LiveDevelopment/LiveDevelopment.js
src/document/DocumentCommandHandlers.js
src/project/ProjectManager.js
2013-10-31 10:01:48 -07:00
Ingo Richter
c96a5ea074
Update unittests.js
...
Disabled failing unit test.
2013-10-29 18:04:40 -07:00
Peter Flynn
84c0e1c205
- Change ScopeManager to use getDocumentText() for efficiency
...
- Add FileSystem.isAbsolutePath() utility function
- Update FileSystem docs to reflect latest at
https://github.com/adobe/brackets/wiki/File-System
2013-10-28 18:50:37 -07:00
Glenn Ruehle
70c9453260
Merge with origin/master
2013-10-28 16:25:54 -07:00
Narciso Jaramillo
010bc625b8
Rename lodash.custom.min.js to lodash.js so our JS code hinting finds it. Remove the special path for it so it's more consistent with other require paths that have to be relative to src.
2013-10-28 14:15:03 -07:00
Ian Wehrman
f8c86db7fd
move FileSystemEntry.isFile() and isDirectory() to FileSystemEntry.isFile and isDirectory; create new FileSystemStats class and update FileSystemEntry.stat to callback with a FileSystemStats object
2013-10-24 16:45:07 -07:00
Ian Wehrman
63f452e5d0
Fix the acorn SHA
2013-10-24 12:26:40 -07:00
Ian Wehrman
2ab57c068b
Merge branch 'brackets' into glenn/file-system
...
Conflicts:
src/document/DocumentCommandHandlers.js
src/document/DocumentManager.js
src/editor/CSSInlineEditor.js
src/file/FileUtils.js
src/project/ProjectManager.js
test/spec/DocumentCommandHandlers-test.js
2013-10-24 12:16:14 -07:00
Kevin Dangoor
0aef4999a1
Turn off tests that are failing for timing reasons.
2013-10-24 11:26:28 -04:00
Kevin Dangoor
f64e900a50
Merge branch 'dangoor/update-tern-acorn' into dangoor/4922-document-methods-missing
2013-10-23 15:59:17 -04:00
Kevin Dangoor
931d8bedb8
Update Acorn to match Tern update
2013-10-23 15:58:04 -04:00
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
Ian Wehrman
0d32066b08
Fix submodule SHAs
2013-10-21 17:13:02 -07:00
Ian Wehrman
bfb113d5a9
Merge branch 'brackets' into glenn/file-system
...
Conflicts:
src/document/DocumentManager.js
src/language/JSUtils.js
src/project/ProjectManager.js
src/search/FindInFiles.js
2013-10-21 12:20:33 -07:00
Kevin Dangoor
a076860a85
Merge branch 'master' into dangoor/4922-document-methods-missing
2013-10-21 12:12:24 -04:00
Ian Wehrman
e142295070
Bump Tern submodule to include a patch for crashing bug caused by the filesystem code
2013-10-18 10:18:09 -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
Glenn Ruehle
290da888da
Make FileSystem a singleton.
2013-10-17 15:39:35 -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
Glenn Ruehle
89945f808d
Add ProjectManager.getAllFiles(), replacing FileSystem.getFileList(). Purge the _allFiles handling from FileIndex.
2013-10-13 09:45:32 -07:00
gmeluski
be80ae2cca
changing not.toBeNull to toBeTruthy
...
:
2013-10-11 15:21:54 -04:00
Glenn Ruehle
5d8394d253
Merge branch 'glenn/file-system' of https://github.com/adobe/brackets into glenn/file-system
2013-10-11 07:08:33 -07:00
Glenn Ruehle
9dc6a18ab2
First pass at adding rename functionality. Still some loose ends to clean up.
2013-10-11 07:08:28 -07:00
Kevin Dangoor
405a493d7e
Load and enable the Angular plugin for Tern.
2013-10-10 22:37:41 -04:00
Peter Flynn
087a4519a5
Cleaner fix for race condition bugs in JS code hints unit tests.
2013-10-10 18:45:42 -07:00
Peter Flynn
af57cff028
Standardize back on trailing-/ for directory paths. This is safer for legacy
...
code that concats paths with this assumption. The normalization hook in
FileSystem also removes duplicated /es. In the future it could also handle
"/." and "/..", but it doesn't yet.
Fixes the infinite-traversal bug in JS code hints & re-enables the unit
tests that were hitting it. But adds some hacky temp code to forestall race
conditions when running these tests (presumably a race on master too).
Many of the diffs are just restoring code back to what it is on master.
2013-10-10 18:12:07 -07:00
Kevin Dangoor
9d8f0835eb
Update to Tern 0.5 and Acorn 0.4
2013-10-10 16:45:55 -04:00
Ian Wehrman
8269ff1604
Move FileSystem.getDirectoryContents to Directory.getContents
2013-10-09 16:16:07 -07:00
Glenn Ruehle
996ea0d724
Remove FileSystem.pathExists(). Fix a bunch of unit test failures.
2013-10-08 16:31:26 -07:00