code: function () {
          function filter(file) {
              return _subtreeFilter(file, null) && _isReadableText(file.fullPath);
          }
          FindUtils.setInstantSearchDisabled(true);
  
          //we always listen for filesytem changes.
          _addListeners();
  
          if (!PreferencesManager.get("findInFiles.nodeSearch")) {
              return;
          }
          ProjectManager.getAllFiles(filter, true, true)
              .done(function (fileListResult) {
                  var files = fileListResult,
                      filter = FileFilters.getActiveFilter();
                  if (filter && filter.patterns.length > 0) {
                      files = FileFilters.filterFileList(FileFilters.compile(filter.patterns), files);
                  }
                  files = files.filter(function (entry) {
                      return entry.isFile && _isReadableText(entry.fullPath);
                  }).map(function (entry) {
                      return entry.fullPath;
                  });
                  FindUtils.notifyIndexingStarted();
                  searchDomain.exec("initCache", files);
              });
          _searchScopeChanged();
      }
docs: On project change, inform node about the new list of files that needs to be crawled.
  Instant search is also disabled for the time being till the crawl is complete in node.