mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
[param hints] refresh editor on enable/disable custom hint option
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user