dls.protocol.handlers

Members

Functions

handler
auto handler(string methodOrId)

Returns the RequestHandler/NotificationHandler/ResponseHandler corresponding to a specific LSP method.

hasRegisteredHandler
bool hasRegisteredHandler(string method)

Checks if a method has a handler registered for it. Used to determine if the server should send a request or a notification to the client (if the method has a handler, then the server will expect a response and thus send a request).

pushHandler
void pushHandler(string method, F func)

Registers a new handler of any kind (RequestHandler, NotificationHandler or ResponseHandler).

pushHandler
void pushHandler(string id, string method)

Registers a new dynamic ResponseHandler (used at runtime)

Templates

isHandler
template isHandler(func...)

Checks if a function is correct handler function. These will only be registered at startup time and will never be unregistered.

Meta