VSCodeでUnknown(FileSystemError):UNC host ‘wsl$’ access is not allowed. Please update the ‘security.allowedUNCHosts’ setting if you want to allow this host
VSCodeを立ち上げると、前回開いていたファイルがエラーで開けなくなっていました。
開こうとしても
![](https://www.sunnygem.co.jp/wp-content/uploads/2023/05/スクリーンショット-2023-05-13-143352.png)
なんか、こんなポップアップが出て、開けない。
エラーを調べてみると、
https://code.visualstudio.com/docs/setup/windows
このページに対処方法が書いてあった
![](https://www.sunnygem.co.jp/wp-content/uploads/2023/05/image.png)
VSCodeのSettings(設定)で、securityで検索してみたところ、Allowed UNCHostsという設定があるみたい
VSCodeを起動したときも、
![](https://www.sunnygem.co.jp/wp-content/uploads/2023/05/image-1.png)
こんな風に、警告してくれているので、
![](https://www.sunnygem.co.jp/wp-content/uploads/2023/05/image-4-1024x204.png)
wsl$
と入力し、VSCodeを再起動したら、アクセスできるようになりました。
この投稿へのトラックバック
トラックバックはありません。
- トラックバック URL
この投稿へのコメント