Let's say you make a new assembly def, return to VSCode and see that while Unity compiles VSCode is unable to find your classes.
In Unity, go to Preferences -> External Tools and Regenerate project files.
Return to VSCode and you should now no longer have it reporting errors.