Looking at the output window of vscode, it prompts that loading the csproj file failed.
It need be converted to new SDK style to work in C# Dev Kit.
Just upgrade the Visual Studio Editor version in Unity's PackageManager to 2.0.20 or above and regenerate the csproj file.
Refer to vscode official:
There are many people discussing: