Closed jtlapp closed 1 year ago
On test explorer tree view, the debug is only available for the test files/blocks, not for the folder or workspace. On editor gutter, the right click should bring up a context menu, similar to your screenshot above. If you did not see the context menu then the "right-click" is not working... On the gutter context menu, the "debug" itetm should always be available.
Gotcha. Then the explorer tree is working as expected, and the gutter context menu is not. I get no gutter context menu. Whatever kind of click I do, it reruns the test. Thanks!
Opening up the gutter context menu is controlled by vscode; not sure what we could have done to disable that... I can't reproduce what you are seeing... do you have a sample repo?
I have this problem in every repo I try, whether mine or not. If the problem is on my end, it has to do with the VSCode configuration, conflicting extensions, environment variables, or globally installed commands.
I think you are right, it seems to be something specific to your settings. If it is a common issue with his extension, I would expect many more people to complain about it, as the gutter context menu is where most test controls are. 🤔
I solved the problem. I can Ctrl-click to emulate right-clicking for everything but this extension. I can even Ctrl-click elsewhere within VSCode to get pop-up menus. But I'm using an Apple trackpad, and for some unknown reason, this particular extension requires me to perform a "secondary click" gesture to emulate Ctrl-clicking. My secondary gesture is currently configured to be two fingers clicking at once, and that pops up the menu.
It seems that this extension is receiving "right clicks" differently than most apps, but I do have a solution, so I'll close this.
Environment
vscode-jest version
: [5.2.3]node -v
: [v18.14.0]npm -v
oryarn --version
: [pnpm 7.26.3]npm ls jest
ornpm ls react-scripts
(if you haven’t ejected): [jest 29.4.2]Prerequisite
npm run test
ornode_modules/.bin/jest
) [npx jest]Steps to Reproduce
On a Mac:
Expected Behavior
Ctrl-click on the gutter icon should pop up a menu. (And that menu should have a debug option.)
Ctrl-click on a play icon in the sidebar should pop up a menu with a debug option.