Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit d56f7fd

Browse files
committed
implemented and tested ignoring
1 parent 322eda0 commit d56f7fd

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/filesystem/FileSystem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ define(function (require, exports, module) {
262262
var impl = this._impl,
263263
recursiveWatch = impl.recursiveWatch,
264264
commandName = shouldWatch ? "watchPath" : "unwatchPath",
265-
ignored = null; // TODO: use watchedRoot.filter
265+
ignored = watchedRoot.globFilter;
266266

267267
if (recursiveWatch) {
268268
// The impl can watch the entire subtree with one call on the root (we also fall into this case for

src/filesystem/impls/appshell/AppshellFileSystem.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ define(function (require, exports, module) {
108108
* @private
109109
*/
110110
function _fileWatcherChange(evt, event, parentDirPath, entryName, statsObj) {
111-
// console.log('_fileWatcherChange', event, parentDirPath, entryName, statsObj);
112-
113111
var change;
114112
switch (event) {
115113
case "change":

src/project/ProjectModel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ define(function (require, exports, module) {
6060

6161
/**
6262
* @public
63-
* Anymatch definition of files and folders that should be excluded directly
64-
* node domain watching with chokidar
63+
* Glob definition of files and folders that should be excluded directly
64+
* inside node domain watching with chokidar
6565
*/
66-
var exclusionGlob = ".git";
66+
var exclusionGlob = "**/(.pyc|.git|.gitmodules|.svn|.DS_Store|Thumbs.db|.hg|CVS|.hgtags|.idea|.c9revisions|.SyncArchive|.SyncID|.SyncIgnore)";
6767

6868
/**
6969
* @private

0 commit comments

Comments
 (0)