Unable to write program user data

Problem: I’m unable to start VS Code via LSF, at launch time I’m receiving an error:

Unable to write program user data.
A system error occured (listen EACCES: permission denied /run/user/<id>/vscode-<id>.sock)
Please make sure the following directories are writeable.

Solution: Before launching VS Code, set the XDG_RUNTIME_DIR environment variable to point to a directory where you have write permissions. This variable dictates where the .sock file is created.