open editor during initialization process rather than in parallel to
avoid timing problem. Fixes #3695