I suspect that Unity did not bind to Visual Studio, causing the script code to become Miscellaneous files. If it is this reason, it can be modified in the following way:
Edit ->External Tools ->External Script Editor
on the Unity toolbar Switch to the corresponding Visual Studio version in the options