Replies: 1 comment
-
We've re-opened the issue, so I will close this to keep the context in one place. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The code lens feature to run tests is great! 🎉
But right now, there are triggers everywhere:
To be fair, 1-2 are different, but 3-5 are the same thing.
I find 5 quite annoying, because it makes the test file hard to read and difficult to work with visually (moving blocks of code around, quickly scanning code, etc), with every few lines being broken with this magic extra line, with controls.
Obviously subjective, but since 4 is just a few pixels away and 3 also easy to reach, I prefer both of them to 5.
Two suggestions (either would work)
A. Remove 5, and let people use 3 or 4 to run a test.
B. Make it configurable to remove/hide 5.
Other languages
In the python issue below there is a screenshot purportedly showing a way to hide 5.
I've looked around to find the original issue and reasoning, but it points to an internal issue tracker. For what it's worth, the Microsoft VS Code team thought it was a good idea to rely only on the gutter (4), and skip code lens for tests (5).
I think this is the commits removing it: microsoft/vscode-python#16200
Links
For future reference, here are some similar requests for other languages. In case anyone want to open an issue upstream.
See also this original issue (which is currently closed): #2167
Beta Was this translation helpful? Give feedback.
All reactions