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);
		terminalInstance.resource = URI.parse(terminalInstance.resource);
		return this._terminalEditorService.reviveInput(terminalInstance);
	}