lsp icon indicating copy to clipboard operation
lsp copied to clipboard

`getCodeActionContextInRange` seems counterintuition

Open July541 opened this issue 2 years ago • 0 comments

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

July541 avatar May 07 '22 08:05 July541