account for notifyPathDeleted asynchronous’ nature: both showing an error as well as opening an alternate file are async, hence showCustomViewer needs to await the resolution of the associated promises.