The bug is here. `_configureEditorAndResolve` callback was called immediately after the project tree refreshed instead of waiting for `addToWorkingSetAndSelect` to complete.