Search code examples
dockervisual-studio-codecontainers

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: enter image description here

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


Solution

  • 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.

    enter image description here

    That worked for me