1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-02-26 14:46:00 +01:00

Make sure the injector is initialized in VimShortcutKeyAction

This commit is contained in:
Alex Plate 2023-11-23 16:19:13 +02:00
parent c29a409f28
commit ed1f3cec59
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -56,7 +56,12 @@ import javax.swing.KeyStroke
* These keys are not passed to [com.maddyhome.idea.vim.VimTypedActionHandler] and should be handled by actions.
*/
internal class VimShortcutKeyAction : AnAction(), DumbAware/*, LightEditCompatible*/ {
private val traceTime = injector.globalOptions().ideatracetime
private val traceTime: Boolean
get() {
// Make sure the injector is initialized
VimPlugin.getInstance()
return injector.globalOptions().ideatracetime
}
override fun actionPerformed(e: AnActionEvent) {
LOG.trace("Executing shortcut key action")