VScode connected with WSL "The connection to the terminal's pty host process is unresponsive, the terminals may stop working."
11:28 20 Oct 2021

I have wsl 2 installed on windows 10 and I have connected VScode with wsl. Many times when I run a gatsby app in VScode with the wsl environment. I get the error:

The connection to the terminal's pty host process is unresponsive, the terminals may stop working. 

I have disabled and uninstalled many VScode extensions, did a BIOS update and have the latest version of VScode but the problem stays the same.

visual-studio-code windows-subsystem-for-linux pty