Why CodeVision entry display only the last entry for a given line / provider ?
Answered
Hi,
I have implemented a CodeVisionProvider which is working well but my CodeVisionProvider can return several CodeVision entries for the same line and providerId.
After debugging IJ I have noticed this behavior https://github.com/JetBrains/intellij-community/blob/85bffb2a7b503156f79a7ce1d595eb557904f3ec/platform/lang-impl/src/com/intellij/codeInsight/codeVision/EditorCodeVisionContext.kt#L119
I wonder why there is this restriction and is there is a solution to fix this problem? An hack that I found is to create code vision entry with different providerId (which doesn't exists, so there will have some trouble with settings I think).
Many thanks for your help.
Please sign in to leave a comment.
Hi!
I believe the system was designed with that restriction, and for now, I can't suggest another solution but to create a separate provider for each code vision entry.
Hi Nikita,
Thanks so much for your answer. In my case I cannot separate provider for each code vision entry, but my hack by creating code version with different providerId is working. But it was not enough:
* when you create code vsion entry with a providerId which doesn't exist, the UI update of the code vision is bugged. I had to create dummy code vision provider with those providerId.
* to manage with settings this code vsion provider, I had to use groupId.