public CodeLensFeature( EditorSession editorSession, IMessageHandlers messageHandlers, ILogger logger) : base(logger) { this.editorSession = editorSession; messageHandlers.SetRequestHandler( CodeLensRequest.Type, this.HandleCodeLensRequest); messageHandlers.SetRequestHandler( CodeLensResolveRequest.Type, this.HandleCodeLensResolveRequest); }
public DocumentSymbolFeature( EditorSession editorSession, IMessageHandlers messageHandlers, ILogger logger) : base(logger) { this.editorSession = editorSession; messageHandlers.SetRequestHandler( DocumentSymbolRequest.Type, this.HandleDocumentSymbolRequest); }
/// <summary> /// Creates a new instance of the ConsoleServicePSHostUserInterface /// class with the given IConsoleHost implementation. /// </summary> /// <param name="powerShellContext"></param> public ProtocolPSHostUserInterface( PowerShellContext powerShellContext, IMessageSender messageSender, IMessageHandlers messageHandlers, ILogger logger) : base(powerShellContext, new SimplePSHostRawUserInterface(logger), logger) { this.messageSender = messageSender; this.outputDebouncer = new OutputDebouncer(messageSender); messageHandlers.SetRequestHandler( EvaluateRequest.Type, this.HandleEvaluateRequest); }
public void Start() { // Register all supported message types _messageHandlers.SetRequestHandler(InitializeRequest.Type, HandleInitializeRequestAsync); _messageHandlers.SetRequestHandler(LaunchRequest.Type, HandleLaunchRequestAsync); _messageHandlers.SetRequestHandler(AttachRequest.Type, HandleAttachRequestAsync); _messageHandlers.SetRequestHandler(ConfigurationDoneRequest.Type, HandleConfigurationDoneRequestAsync); _messageHandlers.SetRequestHandler(DisconnectRequest.Type, HandleDisconnectRequestAsync); _messageHandlers.SetRequestHandler(SetBreakpointsRequest.Type, HandleSetBreakpointsRequestAsync); _messageHandlers.SetRequestHandler(SetExceptionBreakpointsRequest.Type, HandleSetExceptionBreakpointsRequestAsync); _messageHandlers.SetRequestHandler(SetFunctionBreakpointsRequest.Type, HandleSetFunctionBreakpointsRequestAsync); _messageHandlers.SetRequestHandler(ContinueRequest.Type, HandleContinueRequestAsync); _messageHandlers.SetRequestHandler(NextRequest.Type, HandleNextRequestAsync); _messageHandlers.SetRequestHandler(StepInRequest.Type, HandleStepInRequestAsync); _messageHandlers.SetRequestHandler(StepOutRequest.Type, HandleStepOutRequestAsync); _messageHandlers.SetRequestHandler(PauseRequest.Type, HandlePauseRequestAsync); _messageHandlers.SetRequestHandler(ThreadsRequest.Type, HandleThreadsRequestAsync); _messageHandlers.SetRequestHandler(StackTraceRequest.Type, HandleStackTraceRequestAsync); _messageHandlers.SetRequestHandler(ScopesRequest.Type, HandleScopesRequestAsync); _messageHandlers.SetRequestHandler(VariablesRequest.Type, HandleVariablesRequestAsync); _messageHandlers.SetRequestHandler(SetVariableRequest.Type, HandleSetVariablesRequestAsync); _messageHandlers.SetRequestHandler(SourceRequest.Type, HandleSourceRequestAsync); _messageHandlers.SetRequestHandler(EvaluateRequest.Type, HandleEvaluateRequestAsync); }