'Visual Studio Code Wordpress directories not opening and disappearing

I'm new to VSC but have a very strange problem. I connect to the FTP with no problem but some of the directories aren't showing as dropdown folders but instead with '[DIR]' next to them. Even stranger, when I click them they are crossed out and then disappear when I click off.

Top level folders appear correctly but anything further down the hierarchy has the same problem.

Here is an example of what I mean enter image description here

Has anyone experienced this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source