[param hints] refresh editor on enable/disable custom hint option

This commit is contained in:
Yaroslav Lepenkin
2017-04-27 13:42:47 +03:00
parent 583a728f89
commit 0b960ec6ad
@@ -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