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

Fix(VIM-2766): Move NERDTree update to background thread

This commit is contained in:
Alex Plate 2022-10-18 11:31:15 +03:00
parent d3424021c8
commit 6c0cc7285f
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -243,7 +243,7 @@ class NerdTree : VimExtension {
e.presentation.isEnabled = !speedSearchIsHere(project)
}
override fun getActionUpdateThread() = ActionUpdateThread.BGT
override fun getActionUpdateThread() = ActionUpdateThread.EDT
private fun speedSearchIsHere(project: Project): Boolean {
val component = ProjectView.getInstance(project).currentProjectViewPane.tree ?: return false