Event when Atom finishes launching?


#1

Is there any mechanism that would allow me to detect when Atom is finished loading? I am think of something like jQuery’s .ready function or an event that may be fired off indicating that the app is ready. I am working on a package that needs to initialize some stuff after Atom is finished loading.


#2

Just use process.tick. The loading process all occurs in one event loop tick because it is totally synchronous (which is probably a major reason it is so slow). I have used this before.


#3

Worked great. thanks for the tip. I’m not finding great documentation on the available events that get fired from Atom (I may be overlooking something). Are you aware of an event that can inform my plugin when a file is opened?


#4

You can use atom.workspace.observeTextEditors for this.