Had the same issue when using VSCode to edit files in WSL. Solved it by installing the WSL extension in VSCode: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl (as dinesh ygv mentioned above)