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).
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