A colleague of mine tried to update a profile configuration with VScode as a default editor.
Unfortunately, any time she would run:
aiidalab-launch profile edit <name>
She would get an empty toml file to edit. After switching back to vim:
export VISUAL=vim
export EDITOR="$VISUAL"
Things worked fine