haskell / haskell/lsp

`getCodeActionContextInRange` seems counterintuition

Open
#429 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
423
Forks
105
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.