src/vs/workbench/contrib/terminal/browser/terminalEditorSerializer.ts/TerminalInputSerializer/serialize
class TerminalInputSerializer:	public serialize(editorInput: TerminalEditorInput): string | undefined {
		if (!editorInput.terminalInstance?.persistentProcessId || !editorInput.terminalInstance.shouldPersist) {
			return;
		}
		const term = JSON.stringify(this._toJson(editorInput.terminalInstance));
		return term;
	}