mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-05-12 09:34:06 +02:00
Remove the requirement for the write action in macros
It's not clear why the write action was needed. Probably, it was a mistake and it supposed to be a check for EDT. However, since the check for EDT exists right in the constructor of the potemkin progress, let's remove it at all.
This commit is contained in:
parent
0b2bda529f
commit
0511ee277f
@ -9,7 +9,6 @@ package com.maddyhome.idea.vim.group
|
||||
|
||||
import com.intellij.codeInsight.completion.CompletionPhase
|
||||
import com.intellij.codeInsight.completion.impl.CompletionServiceImpl
|
||||
import com.intellij.openapi.application.ApplicationManager
|
||||
import com.intellij.openapi.components.Service
|
||||
import com.intellij.openapi.diagnostic.logger
|
||||
import com.intellij.openapi.progress.ProcessCanceledException
|
||||
@ -40,9 +39,6 @@ internal class MacroGroup : VimMacroBase() {
|
||||
context: ExecutionContext,
|
||||
total: Int,
|
||||
) {
|
||||
// This is to make sure that we don't access potemkin progress from different threads
|
||||
ApplicationManager.getApplication().assertWriteAccessAllowed()
|
||||
|
||||
val project = (editor as IjVimEditor).editor.project
|
||||
val keyStack = getInstance().keyStack
|
||||
if (!keyStack.hasStroke()) {
|
||||
|
Loading…
Reference in New Issue
Block a user