I\'ve searched but didn\'t find any info on how to disable references (or the codelens completely) in the Visual Studio Code, they\'re quite useless and annoying for me.
You can do it using a single click on VS Code. Just install the extension Setting Toggle made by Ho-Wan on VS Code.
Once you install, click on T as shown in the image to toggle Codelens.