1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-04-23 13:15:45 +02:00

Wait for the action to be finished before returning the result

This commit is contained in:
Alex Plate 2025-03-04 17:31:43 +02:00
parent 572af0d349
commit 3d1b502cd0
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -88,6 +88,7 @@ internal class IjActionExecutor : VimActionExecutor {
try {
isRunningActionFromVim = true
val res = ActionManager.getInstance().tryToExecute(ijAction, null, editor?.ij?.component, "IdeaVim", true)
res.waitFor(5_000)
return res.isDone
} finally {
isRunningActionFromVim = false