I am trying to add a new filtering mode to the search usages dialog. I found this approach via `UsageFilteringRuleProvider` to be promising but it’s marked as internal.
Is there a chance to get it promoted?
I am trying to add a new filtering mode to the search usages dialog. I found this approach via `UsageFilteringRuleProvider` to be promising but it’s marked as internal.
Is there a chance to get it promoted?
From what I see UsageFilteringRuleProvider is not internal, only its EP_NAME is so plugins may not query providers. But you can implement it in a plugin.
Right, I have this snippet and the usage of RULES_CHANGEDis marked as internal.
override fun setSelected(e: AnActionEvent, state: Boolean) {
val project = e.project ?: return
project.service<PyTestUsageFilteringStateService>().showOnlyTestUsages = state
project.messageBus.syncPublisher(UsageFilteringRuleProvider.RULES_CHANGED).run()
}
Is there a better way to do that?
This definitely can be promoted https://youtrack.jetbrains.com/issue/IJPL-239638/Promote-UsageFilteringRuleProvider.RULESCHANGED-to-stable