Option to disable "run test | debug test" links
See original GitHub issueI’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?
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:
- Created 3 years ago
- Reactions:40
- Comments:30 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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).
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)
But ideally the jumping should be fixed.