Display Message Before Opening File


#1

Hi,

I am trying to develop a package which uses a disassembler for opening .class files instead of displaying the raw contents. It can take some time to disassemble the file though and thus I would like to show some kind of message telling the user to wait. The problem is for some reason nothing that I try to display before actually opening the file gets displayed until after the file is opened. Adding a notification for example, even when calling atom.workspaces.open(…) from within that notification’s onDidDisplay method doesn’t show the actual notification until the file has been opened, making it completely useless. I encountered the same behavior when trying to display a panel. Does anyone know a way around this or have an example of a package which shows something similar to a “Loading” message before opening a file?

Thanks!


#2

You can probably make the opener itself display the loading message before it starts disassembling the file.