How can my custom SearchEverywhereContributor have a custom preview pane?
Answered
I've implemented a custom SearchEverywhereContributor. Everything works great, except I can't figure out how to make the preview pane actually work for it.
Combing through the sources, I found SearchEverywherePreviewProvider, and I tried implementing that, but it doesn't appear to be accessible from my plugin code. Why is that? Please help. How am I supposed to implement custom preview pane content for my custom SearchEverywhereContributor search results?
Please sign in to leave a comment.
Hi,
It's impossible to tell the reason without any details.
I suggest debugging code around https://github.com/JetBrains/intellij-community/blob/master/platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/SearchEverywhereUI.java#L1251 to see what happens. If you can't find the reason, share more details and your implementation.
The problem isn't that something's necessarily broken.
The problem is that I have no idea how to start implementing for the preview pane in the first place. There is no documentation that I could find.
It seems to me that you should start with implementing the interface you mentioned:
SearchEverywherePreviewProvider
.If the preview panel doesn't work out-of-the-box, my suggestion about debugging it in the place I pointed remains the same.
If you want to create a totally custom preview panel, please provide more details.