Closed awilliambauer closed 3 months ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
ocaml-lsp-server/src/code_actions/action_destruct_line.ml | 44 | 46 | 95.65% | ||
<!-- | Total: | 45 | 47 | 95.74% | --> |
Totals | |
---|---|
Change from base Build 4285: | 0.08% |
Covered Lines: | 5369 |
Relevant Lines: | 24550 |
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
ocaml-lsp-server/src/code_actions/action_destruct_line.ml | 43 | 45 | 95.56% | ||
<!-- | Total: | 44 | 46 | 95.65% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
ocaml-lsp-server/src/signature_help.ml | 54 | 0.0% | ||
<!-- | Total: | 54 | --> |
Totals | |
---|---|
Change from base Build 4285: | 0.07% |
Covered Lines: | 5368 |
Relevant Lines: | 24553 |
Fixed a bug where destruct-line would sometimes fail to provide the "-> _" on the right-hand side of cases when Merlin split its response across multiple lines.
Used the opportunity to clean up how the reply gets formatted: it now relies on fewer fragile regular expressions and should generally be a bit easier to read.
Testing also led to the discovery of some bad behavior on case-lines where the lhs is a hole, but the cursor isn't on the hole. This was fixed by adding
OffsetHole
to thestatement_kind
variants.Testing
Updated the expect-tests for long variant names, offset-holes, and hole-spacing. Importantly, the tests called "destruct strips parentheses even on long lines" and "destruct a case with a hole but not on the hole" confirm the bug-fixes.