src/vs/workbench/contrib/terminal/browser/terminalEditorSerializer.ts/TerminalInputSerializer/canSerialize
class TerminalInputSerializer:	public canSerialize(editorInput: TerminalEditorInput): boolean {
		return !!editorInput.terminalInstance?.persistentProcessId;
	}