To disable CodeLens, choose Tools > Options > Text Editor > All Languages > CodeLens, and deselect the feature