I installed docker desktop and ubuntu on windows 10. I followed the following tutorial:
https://code.visualstudio.com/docs/remote/wsl-tutorial
When I was trying to run on the ubuntu console. I got the following error:
/usr/share/code/bin/../code: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory
I did not install VS code through the installer due of this error was coming.
Fix for this is.
Run this command on the Ubuntu console:
alias code="/mnt/c/NON-INSTALLED-SOFTWARES/VSCode-win32-x64-1.61.0/Code.exe"
This fixed my issue.