terminal: update command output for running commands only (EA-1120789)

GitOrigin-RevId: abd6f05221f9289c233e54ad48c47768e4bb4e73
This commit is contained in:
Sergey Simonchik
2024-03-17 11:29:56 +00:00
committed by intellij-monorepo-bot
parent 01804853e3
commit 7b9ea532fb
@@ -173,7 +173,7 @@ class TerminalOutputController(
// Can not use invokeAndWait here because deadlock may happen. TerminalTextBuffer is locked at this place,
// and EDT can be frozen now trying to acquire this lock
invokeLater(ModalityState.any()) {
if (!editor.isDisposed) {
if (!editor.isDisposed && runningCommandContext != null) {
doWithScrollingAware {
doUpdateEditorContent(output)
}