When I tried to open vscode in WSL bash on Ubuntu 20.04 using command code ., it failed and the following message was logged:
code .
/mnt/c/Users/john/.