I am using Kubuntu 20.04.
When I run sudoedit /etc/fstab, VS Code opens to a blank document and the CLI immediately returns (see details below).
If I run export SUDO_EDITOR=nano, the document opens in the nano editor with the contents of /etc/fstab as expected.
If I run export SUDO_EDITOR=/snap/bin/code, it once again opens VS Code with a blank document.
What am I doing wrong? Or is this a bug?
kevin@kevcoder00 ~ $ echo $VISUAL
kevin@kevcoder00 ~ $ echo $SUDO_EDITOR
kevin@kevcoder00 ~ $ echo $EDITOR
/snap/bin/code
kevin@kevcoder00 ~ $ sudoedit /etc/fstab
[sudo] password for kevin:
sudoedit: /etc/fstab unchanged