terminal: restore TerminalUtil.hasRunningCommands(ProcessTtyConnector) used by external plugins (IJ-CR-127851)

GitOrigin-RevId: 591e56fb764105ff6cee785a88a9795cbdfc5c4b
This commit is contained in:
Sergey Simonchik
2024-03-04 14:36:49 +01:00
committed by intellij-monorepo-bot
parent 1ac830c7d0
commit 32656f2bde

View File

@@ -118,4 +118,13 @@ public final class TerminalUtil {
textBuffer.addModelListener(listener);
Disposer.register(parentDisposable, () -> textBuffer.removeModelListener(listener));
}
/**
* @deprecated use org.jetbrains.plugins.terminal.TerminalUtil#hasRunningCommands(com.jediterm.terminal.TtyConnector) instead
*/
@SuppressWarnings("DeprecatedIsStillUsed")
@Deprecated
public static boolean hasRunningCommands(@NotNull ProcessTtyConnector connector) throws IllegalStateException {
return hasRunningCommands((TtyConnector)connector);
}
}