Chayim Friedman answered this question, How do I hide the "Run | Debug" above main() text in vscode? but didn't say which file or where you need to add the instructions suggested. Can you be more specific?
Set
rust-analyzer.lens.run.enable
andrust-analyzer.lens.debug.enable
tofalse
. Note this will also disable lens on tests.