Vscode-rust: Add option to disable "Run test" link (CodeLens)

Created on 28 Nov 2018  路  2Comments  路  Source: rust-lang/vscode-rust

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

P-High enhancement

Most helpful comment

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.

All 2 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hpesoj picture hpesoj  路  5Comments

tYYGH picture tYYGH  路  3Comments

fzzr- picture fzzr-  路  4Comments

rpeshkov picture rpeshkov  路  5Comments

harrier-lcc picture harrier-lcc  路  4Comments