Failed to run 'elixir' command error in vs code

I have Manjaro with asdf and zsh.

In my home I creatd a .profile file with this content:

echo 'export PATH="$PATH:/home/<user>/.asdf/shims:/home/<user>/.asdf/bin"' > ~/.profile

Just change <user> by your user name and it should work. If you already have this file I suggest you to do a backup.