/// <summary> /// Pop runspace /// </summary> public override void PopRunspace() { if (_pushedRunspace != null) { if (_debugger != null) { _debugger.PopDebugger(); } if (_hostSupportsPSEdit) { RemovePSEditFromRunspace(_pushedRunspace); } if (_pushedRunspace.ShouldCloseOnPop) { _pushedRunspace.Close(); } _pushedRunspace = null; } }