In the terminal, I entered clear cache This eliminated the problem, regardless of which file was open in VSCode.
clear cache