简体   繁体   中英

VSCode “Unable to open <HASH> Unable to read file”

I'm using VSCode (1.52.1) for a while on my Fedora 33 machine. I'm using Docker extension (v1.9.0) but for some reason, in the past few days when I'm trying to attach the VSCode to the Docker container, it failed to resolve the workspace folder.

I've tried to reinstall VSCode and the Docker extension but it did not help

I think this issue is related

Screenshot: 在此处输入图像描述

As you can see, the files explorer does not show any files, instead, it shows a hash-like string.

Accourding to this vs-code issue

You might have had that folder open before and it now no longer exists. Can you use File > Open Folder to open a different folder in the container?

All you need to do is go to File --> Open Folder in the top menu open the wanted folder and that it.

在此处输入图像描述

That worked for me

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM