public DebugAdapter(ChannelBase serverChannel) : base(serverChannel)
 {
     this.editorSession = new EditorSession();
     this.editorSession.StartSession();
     this.editorSession.DebugService.DebuggerStopped += this.DebugService_DebuggerStopped;
     this.editorSession.PowerShellContext.OutputWritten += this.powerShellContext_OutputWritten;
 }
        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);
        }
        public LanguageServer(ChannelBase serverChannel) : base(serverChannel)
        {
            this.editorSession = new EditorSession();
            this.editorSession.StartSession();
            this.editorSession.ConsoleService.OutputWritten += this.powerShellContext_OutputWritten;

            // Always send console prompts through the UI in the language service
            // TODO: This will change later once we have a general REPL available
            // in VS Code.
            this.editorSession.ConsoleService.PushPromptHandlerContext(
                new ProtocolPromptHandlerContext(this));
        }
 public DebugAdapterClient(ChannelBase clientChannel)
     : base(clientChannel, MessageProtocolType.DebugAdapter)
 {
 }
 public DebugAdapterBase(ChannelBase serverChannel)
     : base (serverChannel, MessageProtocolType.DebugAdapter)
 {
 }
 public LanguageServiceClient(ChannelBase clientChannel)
     : base(clientChannel)
 {
 }
 public LanguageServerBase(ChannelBase serverChannel) : 
     base(serverChannel, MessageProtocolType.LanguageServer)
 {
     this.serverChannel = serverChannel;
 }
 public LanguageServer(ChannelBase serverChannel) : base(serverChannel)
 {
     this.editorSession = new EditorSession();
     this.editorSession.StartSession();
     this.editorSession.PowerShellContext.OutputWritten += this.powerShellContext_OutputWritten;
 }
 /// <summary>
 /// Initializes an instance of the language client using the
 /// specified channel for communication.
 /// </summary>
 /// <param name="clientChannel">The channel to use for communication with the server.</param>
 public LanguageClientBase(ChannelBase clientChannel)
     : base(clientChannel, MessageProtocolType.LanguageServer)
 {
 }