haskell / lsp

Haskell library for the Microsoft Language Server Protocol
360 stars 89 forks source link

Pass the ClientCapabilities to the static handlers in ServerDefinition #498

Closed michaelpj closed 1 year ago

michaelpj commented 1 year ago

See changelog.

michaelpj commented 1 year ago

I think this is an improvement, and at least in principle lets us decide what handlers to provide depending on the client caps. Perhaps a quick sanity check from @wz1000 ?

wz1000 commented 1 year ago

can't capabilities be registered dynamically?

michaelpj commented 1 year ago

Only server capabilities can be registered dynamically. AFAICT there isn't such a mechanism for client capabilities.