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

Fix: Find in Files results don't update to reflect external changes unless file is open - #11602

Merged
zaggino merged 2 commits into
adobe:masterfrom
amrelnaggar:findinfiles-bugfix
Aug 27, 2016
Merged

zaggino merged 2 commits into
adobe:masterfrom
amrelnaggar:findinfiles-bugfix

Conversation

@amrelnaggar

Copy link
Copy Markdown
Contributor

This addresses #10717 and covers all FileSystem change events

@amrelnaggar amrelnaggar changed the title Fix: Find in Files results don't update to reflect external changes u… Fix: Find in Files results don't update to reflect external changes unless file is open Aug 17, 2015
@tallandroid

Copy link
Copy Markdown

Let me know if its accepted. I will stop working on it if thats the case.

@zaggino zaggino added this to the Release 1.8 milestone Aug 26, 2016
@zaggino

zaggino commented Aug 26, 2016

Copy link
Copy Markdown
Contributor

LGTM

Comment thread src/search/FindInFiles.js Outdated
var addPromise;
if (entry.isDirectory) {
if (!added || !removed) {
if (!added || !removed || (!added.length && !removed.length)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd personally prefer || (added.length === 0 && removed.length === 0))

@amrelnaggar

Copy link
Copy Markdown
Contributor Author

Made the changes, this was better indeed.

@zaggino
zaggino merged commit 57b5131 into adobe:master Aug 27, 2016
@zaggino

zaggino commented Aug 27, 2016

Copy link
Copy Markdown
Contributor

Thanks @amrelnaggar !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants