yes, but it fixes the scenario where you are looking at a different file and then click on a deleted image in the project tree, then you will see the file open error. Due to bug #6001 we cannot both fix the unit tests and #5742 per original description. However the bug describes a scenario that is not completely valid: If you are looking at an image, then delete it via OS, then focus Brackets, Brackets should close the image immediately, see #5978. So if we fix #5978 then you can no longer click on the deleted image in the project tree while looking at it. Hence the description for #5742 should be updated to describe the bug that we are fixing with the PR: looking at a different file and then click on a deleted image in the project tree, then you will see the file open error

After consultation with @peterflynn we decided that that is the best way to proceed.