The code
extension does not allow me to open folder with vscode
from command line.
Solution: Add the following function to ~/.config/fish/config.fish
function vcode
open -a "Visual Studio Code.app" $argv
end
then using vcode $folder
to open $folder