haskell / lsp

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

Add WatchKind helpers and fix a bug with createDoc #489

Closed joyfulmantis closed 1 year ago

joyfulmantis commented 1 year ago

WatchKind isn't very well represented, it more of a set type than anything else. This pr adds helper functions to help work with it. createDoc also uses the new helper function to fix a bug. (Originally I had hoped this would be enough to fix one failing test, and while it didn't fix the one I was hoping it would, it fixed two others)

joyfulmantis commented 1 year ago

Okay, scratch that. With the forgotten complete set added in, the test I was debugging pasts too. That just leaves one significant test failure left on ghcide.