IdeaGinkgo / Intellij-Ginkgo

Idea plugin for running and viewing ginkgo tests
GNU General Public License v3.0
34 stars 13 forks source link

Ginkgo Structure replaces standard/Go Structure instead of complementing it #72

Closed dsharp-pivotal closed 1 year ago

dsharp-pivotal commented 1 year ago

The Structure pane/view from the Ginkgo plugin is useful, however it replaces the Go structure. For some files, it seems it takes over the structure view even though there are no tests in the file. (At a guess, it's because the file imports Ginkgo, and/or because it's underneath a directory with test in the name.) That means the structure view is empty and not useful for navigating the file. Whether or no the file contains any test cases, it would be useful to show both the Ginkgo structure and the Go structure. Is that possible?

TaylorOno commented 1 year ago

I am not sure if it is possible. You are correct in your assessment test files that import ginkgo default to the ginkgo struct view. There is a checkbox in the setting to turn it off the ginkgo struct view in settings. image

I might be able to add a button to toggle it in the structpane itself will need to see what is possible

TaylorOno commented 1 year ago

Seems like my hands are somewhat tied as the Go struct view is final I cant extend it to add ginkgo support my only options is to swap out the entire tree

dsharp-pivotal commented 1 year ago

Thanks for pointing out the option. Unfortunate that it's only possible to take over the pane rather than add to it.