haskell / lsp

Haskell library for the Microsoft Language Server Protocol
364 stars 90 forks source link

`getCodeActionContextInRange` seems counterintuition #429

Open July541 opened 2 years ago

July541 commented 2 years ago

I think getCodeActionContextInRange should return all code actions that are in the parameter range instead of the code action that its range contains the parameter range.

Then we can check there is no code action in the expected range by getCodeActions doc (Position minBound maxBound).

https://github.com/haskell/lsp/blob/0164358007601be22b81aa51584abc259d40c584/lsp-test/src/Language/LSP/Test.hs#L538-L556