Hi,
Welcome to our community! 
First of all, check if there is a ScoreBoard script with a ScoreBoard class in it. The names must be spelt exactly the same.
If the issue persists, go to Edit > Preferences > External Tools and click on “Regenerate project files”. That often fixes certain issues with either VS or VS Code.
See also:
- Forum User Guides : How to mark a topic as solved