Open History to see the last commit
1import type { TerminalEvent } from "@t3tools/contracts";
2
3export function terminalRunningSubprocessFromEvent(event: TerminalEvent): boolean | null {
4 switch (event.type) {
5 case "activity":
6 return event.hasRunningSubprocess;
7 case "started":
8 case "restarted":
9 case "exited":
10 return false;
11 default:
12 return null;
13 }
14}