mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-05-02 01:34:03 +02:00
Wait for the action to be finished before returning the result
This commit is contained in:
parent
572af0d349
commit
3d1b502cd0
@ -88,6 +88,7 @@ internal class IjActionExecutor : VimActionExecutor {
|
|||||||
try {
|
try {
|
||||||
isRunningActionFromVim = true
|
isRunningActionFromVim = true
|
||||||
val res = ActionManager.getInstance().tryToExecute(ijAction, null, editor?.ij?.component, "IdeaVim", true)
|
val res = ActionManager.getInstance().tryToExecute(ijAction, null, editor?.ij?.component, "IdeaVim", true)
|
||||||
|
res.waitFor(5_000)
|
||||||
return res.isDone
|
return res.isDone
|
||||||
} finally {
|
} finally {
|
||||||
isRunningActionFromVim = false
|
isRunningActionFromVim = false
|
||||||
|
Loading…
Reference in New Issue
Block a user