You are trying to start Visual Studio Code as a super user which isn't recommended. If this was intended,' code example
Example: open vscode in terminal sudo
sudo code --user-data-dir="~/.vscode-root"
sudo code --user-data-dir="~/.vscode-root"