vscode-rust icon indicating copy to clipboard operation
vscode-rust copied to clipboard

Add option to disable "Run test" link (CodeLens)

Open michael-p opened this issue 6 years ago • 3 comments

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

michael-p avatar Nov 28 '18 19:11 michael-p

+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.

0ax1 avatar May 27 '19 11:05 0ax1

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.

JKAnderson409 avatar Sep 18 '19 20:09 JKAnderson409

It would be useful for me.

Wandalen avatar Oct 04 '21 01:10 Wandalen