You are trying to start Visual Studio Code as a super user which isn't recommended If this was intended, please specify an alternate user data directory using the `--user-data-dir` argument. code example
Example 1: how to run vscode as root
sudo code --user-data-dir="~/.vscode-root"
Example 2: open vscode in terminal sudo
sudo code --user-data-dir="~/.vscode-root"