vscode-rust
vscode-rust copied to clipboard
Add option to disable "Run test" link (CodeLens)
It would be nice if there was a setting to disable the small "Run test" link that's displayed on top of #[test] functions. One can globally disable all CodeLens' in VSCode but some of them are actually useful and hence, I'd like to just disable the RLS one.
Similar settings exist for VSCode extensions for other languages, see e.g. https://github.com/Microsoft/vscode-go/issues/1141
+1 This not only concerns visual appearance but also assumes the Rust code is built through Cargo which might not be the case in favor of another build system.
FYI, it is not necessary to disable CodeLens altogether. You can create a language-specific setting to turn off CodeLens for only Rust files.
// settings.json
"[rust]": {
"editor.codeLens": false
}
I would like to see this implemented because I do not use VSCode to run tests and I would like to use CodeLens in Rust files for things like merge conflicts.
It would be useful for me.