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

Commit

Permalink
Merge pull request #11602 from amrelnaggar/findinfiles-bugfix
Browse files Browse the repository at this point in the history
Fix: Find in Files results don't update to reflect external changes unless file is open
  • Loading branch information
zaggino committed Aug 27, 2016
2 parents a0a0a54 + 30bbf5f commit 57b5131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search/FindInFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ define(function (require, exports, module) {

var addPromise;
if (entry.isDirectory) {
if (!added || !removed) {
if (!added || !removed || (added.length === 0 && removed.length === 0)) {
// If the added or removed sets are null, must redo the search for the entire subtree - we
// don't know which child files/folders may have been added or removed.
_removeSearchResultsForEntry(entry);
Expand Down

0 comments on commit 57b5131

Please sign in to comment.