Customizing the IntentionHintComponent

@insyncwithfoo thanks! This was very helpful. I think the documentation about descriptionDirectoryName could be improved (you mentioning the “child directory of” saved me some time).

I ended up setting a description and removing the IntentionPreviewInfo.EMPTY override. Now there is a simple HTML render, which is good enough :slight_smile:

Problems left

However, I’m still stuck with:

  1. Understanding how to properly setup a LocalQuickFix (to get a highlighting range on hover)
  2. Understanding how to customize the floating icon. :thinking:
  3. Moreover, my IntentionAction is placed after a LocalQuickFix even though I’ve set:
  override fun getPriority(): PriorityAction.Priority = PriorityAction.Priority.TOP