I started working on a .NET project in VSCode from WSL, and I have installed all the necessary extensions, including C# and the C# development kit. However, in my .NET code, I'm not seeing any IntelliSense, and I also cannot navigate to the implementation of functions using F12. Furthermore, when I search for Omnisharp in the VSCode command palette, it doesn't appear. I feel completely in the dark.
I have found a solution to my problem. This occurred because the new version of the C# extension has disabled the OmniSharp server by default. Therefore, we need to manually enable it.
Then, search for Omnisharp and enable "Use Omnisharp," and my problem is solved. (Credit to : https://www.youtube.com/watch?v=dvRAT2H0emQ )
Make sure you have opened the solution from the Solution Explorer . if not it won't work.