haskell / lsp

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

Universal cancellation support #540

Open michaelpj opened 6 months ago

michaelpj commented 6 months ago

Technically, you're supposed to be allowed to cancel any request with $/cancel. We don't support this at the moment.

To do this we would need to run every handler in a thread so we can kill it. So this is very related to https://github.com/haskell/lsp/issues/409

michaelpj commented 6 months ago

So it turns out that HLS supports this via custom logic in HLS. Ugh. Well, everyone should get this by using lsp!