mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
platform: use only highlight infos for fixes
This commit is contained in:
+3
-3
@@ -36,9 +36,9 @@ class DaemonTooltipAction(private val myFixText: String, private val myActualOff
|
||||
|
||||
val project = editor.project ?: return
|
||||
val psiFile = PsiDocumentManager.getInstance(project).getPsiFile(editor.document) ?: return
|
||||
val intentions = ShowIntentionsPass.getActionsToShow(editor, psiFile, myActualOffset)
|
||||
val list = intentions.errorFixesToShow + intentions.inspectionFixesToShow + intentions.intentionsToShow
|
||||
for (descriptor in list) {
|
||||
val intentions = ShowIntentionsPass.getAvailableFixes(editor, psiFile, -1, myActualOffset)
|
||||
|
||||
for (descriptor in intentions) {
|
||||
val action = descriptor.action
|
||||
if (action.text == myFixText) {
|
||||
if (action !is QuickFixWrapper) {
|
||||
|
||||
Reference in New Issue
Block a user