Maybe due to a problem with Unity, some update or whatever. For some students, VS Code simply does not work well. If nothing helped, install and use Visual Studio (Community Edition). Then launch Unity again and open one of your scripts. Maybe you’ll have to reboot your computer.