edit() {
  if [ "${#}" -ne 0 ]; then
    open -a 'Sublime Text' "${@}"
  else
    LOG ERROR 'Wrong number of arguments.'
  fi
}

edit() {
  if [ "${#}" -ne 0 ]; then
    open -a 'Visual Studio Code' "${@}"
  else
    LOG ERROR 'Wrong number of arguments.'
  fi
}

Use Visual Studio Code for edit instead.
Use Visual Studio Code for edit instead.
