From 0b960ec6ad0ea0a971cdc80d1bee2c9a1a9cd0d6 Mon Sep 17 00:00:00 2001 From: Yaroslav Lepenkin Date: Thu, 27 Apr 2017 13:42:08 +0300 Subject: [PATCH] [param hints] refresh editor on enable/disable custom hint option --- .../src/com/intellij/codeInsight/hints/PopupActions.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/hints/PopupActions.kt b/platform/lang-impl/src/com/intellij/codeInsight/hints/PopupActions.kt index d4c7d37e05af..0a0c67486c35 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/hints/PopupActions.kt +++ b/platform/lang-impl/src/com/intellij/codeInsight/hints/PopupActions.kt @@ -196,6 +196,7 @@ class DisableCustomHintsOption: IntentionAction, HighPriorityAction { override fun invoke(project: Project, editor: Editor, file: PsiFile) { val option = getOptionHintAtOffset(editor, file) ?: return option.disable() + refreshAllOpenEditors() } override fun startInWriteAction() = false @@ -243,6 +244,7 @@ class EnableCustomHintsOption: IntentionAction, HighPriorityAction { override fun invoke(project: Project, editor: Editor, file: PsiFile) { val option = getDisabledOptionInfoAtCaretOffset(editor, file) ?: return option.enable() + refreshAllOpenEditors() } override fun startInWriteAction() = false