'VS Code - wsl server closed unexpectedly

yesterday my laptop run out of battery it was late night and decided to not turn it on back.

In the morning I ran into this issue Could you help me please. Can't move forward in my developing course.

Thank you very much.

enter image description here



Solution 1:[1]

Ohh, I found the solution : go to \\wsl$\Ubuntu-18.04\home\<userName> then remove .vscode-server

Go to the terminal and run code . command.

Sources

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

Source: Stack Overflow

Solution Source
Solution 1 Praveer Kumar