I am experiencing an issue where my WSL2 instance (Ubuntu 24.04) fails to stay connecting on vs code. Every time I try to launch it, it connects for a split second to vs code and then exits.I don't know which link in the chain is wrong.
This often happens after the laptop wakes up from sleep/hibernation or uses for a long period of time.
After restarting windows system,all things seem to return to normal. But i don't wanna restart every time the trouble hits me.
When i tried running wsl --shutdown,the output was blocked and outputted nothing.