'VSCode stops recognising Java projects

My vscode used to work properly with Java projects, but sometimes it just stops working. It shows no project is found in the workspace.



Solution 1:[1]

Ctrl + Shift + P on Windows or CMD + Shift + P on Mac, run Java: Clean Java Language Server Workspace.

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 Hainan Zhao