src/vs/workbench/contrib/terminal/browser/terminalEditorSerializer.ts/TerminalInputSerializer/deserialize
class TerminalInputSerializer:	public deserialize(instantiationService: IInstantiationService, serializedEditorInput: string): EditorInput | undefined {
		const terminalInstance = JSON.parse(serializedEditorInput);
		const editor = this._terminalEditorService.getOrCreateEditorInput(terminalInstance);
		editor.terminalInstance?.onExit(() => editor.dispose());
		return editor;
	}