kotest / kotest-intellij-plugin

The official Kotest plugin for Intellij and Android Studio
Apache License 2.0
175 stars 23 forks source link

Fix navigation to test on click #318

Open Rattlehead931 opened 2 weeks ago

Rattlehead931 commented 2 weeks ago

The navigation to tests has been broken for a long time and it has been hampering my productivity a lot. I do not understand whats the point of navigating to an arbitrary white space character that can be anywhere between two tests.

This is just a simple fix to alleviate that issue. It will navigate to the next non white space character between two tests. Which is a lot better than the current behavior.

Previous behavior: https://jam.dev/c/fa4b7672-a472-4f32-991f-33cd49c79849 Behavior After these changes: https://jam.dev/c/b0551b1b-5d91-4bbb-9d0a-c8e6cc8f843a

Please review this PR. Or suggest me on what tests should I add.