mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-02-25 02:46:01 +01:00
[VIM-1819] Fix execution of some rider actions
This commit is contained in:
parent
9a2accc74b
commit
66fca4a921
@ -54,6 +54,7 @@ _To Be Released:_
|
||||
* [VIM-1749](https://youtrack.jetbrains.com/issue/VIM-1749) Tag surround is finished on `>`
|
||||
* [VIM-1801](https://youtrack.jetbrains.com/issue/VIM-1801) Fix j/k motions with inline hints
|
||||
* [VIM-1800](https://youtrack.jetbrains.com/issue/VIM-1800) Improve ideamarks option
|
||||
* [VIM-1819](https://youtrack.jetbrains.com/issue/VIM-1819) Fix execution of some rider actions
|
||||
|
||||
0.53, 2019-08-07
|
||||
--------------
|
||||
|
@ -127,10 +127,13 @@ public class KeyHandler {
|
||||
// What is "place"? Leave it the empty string for now.
|
||||
// Is the template presentation sufficient?
|
||||
// What are the modifiers? Is zero OK?
|
||||
//
|
||||
// beforeActionPerformedUpdate should be called to update the action. It fixes some rider-specific problems
|
||||
// because rider use async update method. See VIM-1819
|
||||
final AnActionEvent event =
|
||||
new AnActionEvent(null, context, ActionPlaces.ACTION_SEARCH, action.getTemplatePresentation(),
|
||||
ActionManager.getInstance(), 0);
|
||||
action.update(event);
|
||||
action.beforeActionPerformedUpdate(event);
|
||||
if (event.getPresentation().isEnabled()) {
|
||||
action.actionPerformed(event);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user