cannot connect to the remote wsl on vs code (Error: [UriError]: cannot call joinPath on URI without path)

cannot connect to the remote wsl on vs code (Error: [UriError]: cannot call joinPath on URI without path)

我正在尝试在 vs 代码上使用 wsl。它运行良好,直到它意外停止工作。

关于如何解决这个问题的任何想法?我尝试卸载并重新安装 vs code 以及停止远程服务器,但它也没有用。我仍然停留在工作区页面上,无法执行任何操作。

提前致谢。

卸载不会影响主目录中的 vscode 服务器文件。删除所述文件将导致全新安装所述服务器和远程容器文件。所以,

rm -r ~/.vscode*
code <wherever_you_like>