How to receive the editor open event?

Currently, I use Workspace.onDidOpenTextDocument to capture the event. However, this event is also fired even the document is not showed (e.g., config file). Is there any alternative API?

[original thread by Elliott.Wen]

EditorManager.onDidCreate

It does mean that it shown to the user, but instance was created. If you want to await then it gets visible then use waitForVisible function from @theia/core/lib/browser/widgets-