Failed to run 'elixir' command error in vs code

Your GUI does not care about settings in .zshenv and .zprofile, both of them are used by zsh only.

Though if your installed version of Elixir-LS is recent enough (I think it became added in 0.3.0 or 0.4.0), then asdf should be found by it if $HOME/.asdf/asdf.sh exists.

https://github.com/elixir-lsp/elixir-ls/blob/3c1085bc90f47141d1286cfabddc834bf3127c51/apps/elixir_ls_utils/priv/launch.sh#L14