testcop / Resharper.TestCop

A Jetbrains Resharper Plugin to help you to switch between code and test classes (+more)
BSD 3-Clause "New" or "Revised" License
32 stars 13 forks source link

Focus jumps to TestCop output making it impossible to continue to work #87

Closed MarkSandy closed 2 years ago

MarkSandy commented 2 years ago

I am making changes in a test class that does not fit the current naming convention. So I get the error message

"Didn't find project with namespace of: yxxxx to match xxxx.Unittests.xxxxx"

Which is ok.

However, the focus switches from the code view to the TestCop output view making it impossible to continue to work fluently as I always have to click into the code window to continue typing. The message appears after every keystroke.

testcop commented 2 years ago

hi, that message should only appear when you use the testcop shortcut to navigate between test and code. The shortcut by default is assigned to Ctrl-G+T. Can you confirm versions of R# and VisualStudio you are using please?

I see the focus changing only when i do Ctrl-G+T...I will take a look at why it has started doing this...

MarkSandy commented 2 years ago

Hi, the message (and focus change) appears after each end every keystroke. However, the focus should not change at all, don’t you think so? I changed the shortcut to Ctrl-Y Y (Y is on the lower left, right next to Ctrl on a german keyboard)

The problem shows up on VS 2022 and R# 2021.3.3.

I tried to reproduce the problem but failed. I will continue to work and keep an eye on the strange behavior.

Kind regards

Mark


Von: Reporting for duty @.> Gesendet: Montag, 7. Februar 2022 22:12 An: testcop/Resharper.TestCop @.> Cc: Mark Sandy @.>; Author @.> Betreff: Re: [testcop/Resharper.TestCop] Focus jumps to TestCop output making it impossible to continue to work (Issue #87)

hi, that message should only appear when you use the testcop shortcut to navigate between test and code. The shortcut by default is assigned to Ctrl-G+T. Can you confirm versions of R# and VisualStudio you are using please?

I see the focus changing only when i do Ctrl-G+T...I will take a look at why it has started doing this...

testcop commented 2 years ago

fix pushed to JetBrains - give it a couple of days before it is available - issue was introduced as recompile with R# version 2021.3 1.10.15.7

thanks for using TestCop...