1
0
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:
Alex Plate 2025-02-21 17:40:40 +02:00
parent 0b2bda529f
commit 0511ee277f
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -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()) {