public DebugAdapter(ChannelBase serverChannel) : base(serverChannel) { this.editorSession = new EditorSession(); this.editorSession.StartSession(); this.editorSession.DebugService.DebuggerStopped += this.DebugService_DebuggerStopped; this.editorSession.ConsoleService.OutputWritten += this.powerShellContext_OutputWritten; // Set up the output debouncer to throttle output event writes this.outputDebouncer = new OutputDebouncer(this); }