vscode romote wsl: cant code . in root directory

Viewed 14

When i try to :

> code .

in a root directory I get:

root@zero ➜ code .
/mnt/c/Users/username/AppData/Local/Programs/Microsoft VS Code/Code.exe: Invalid argument
                                                                                      # 
  • I'm using wsl2 with Debian distro
  • Any other user directory is working fine
  • I also cannot open directly from vscode, but, if I change my default user UID and GID inside etc/passwd to 0(root) then I can access root directory but only through vscode and still can't do code . from wsl.
0 Answers
Related