question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to disable "run test | debug test" links

See original GitHub issue

I’m having the same issue as this guy from a while back on vscode-go, but with the Python extension:

Hi,

just a minor nit – is there any way to disable these two links?

image

When writing tests, these lines show up when the code is OK, but they disappear every time there’s a syntax error - effectively every time I save a _test.go file that doesn’t compile.

The showing up / hiding causes the code to jump up and down and it gets too much of my attention and slows me down.

The code jumping up and down while I type kind of makes me seasick. Is there any way to disable just this one codelens for Python tests (or tests in general, for that matter)? There’s always:

"editor.codeLens": false

but that disables all code lenses everywhere, which is less than ideal.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:40
  • Comments:30 (8 by maintainers)

github_iconTop GitHub Comments

7reactions
CarloDePiericommented, Jul 15, 2020

I can confirm that whenever the syntax is invalid those lenses disappears.

I would really appreciate a settings to turn them off, also because they kinda clash with other plugin lenses (test explorer ui python plugin, for example).

6reactions
iivvoocommented, Sep 10, 2020

I had these lenses tamed at some point (this issue was there 2 years ago as well), but they reappeared.

I might be missing something, but I think the setting below will disable it specifically for python (they work fine for me with golang, for example)

    "[python]": {
        "editor.codeLens": false
    }

But ideally the jumping should be fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code's "Run Test | Debug Test" option missing ...
Check your options to confirm that the Go test explorer is enabled: Preferences > Settings > User Settings > find "go test enable...
Read more >
Context Menu (right click) for Run / Debug Tests are disabled ...
Simply opening Visual Studio 2019 and right clicking a project, the 2 'Run/Debug tests' options are disabled. If I then open up the...
Read more >
Run tests | GoLand Documentation - JetBrains
Place the caret at the test file to run all tests in that file, or at the test method, and press Ctrl+Shift+F10 ....
Read more >
Android Debug Bridge (adb) - Android Developers
Required for test runners. --no-window-animation : Turn off window animations while running. --user user_id | current : Specify which ...
Read more >
cargo test - The Cargo Book
The libtest harness may be disabled by setting harness = false in the target manifest settings, in which case your code will need...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found