Skip to content

Commit

Permalink
fix: catch Ill_typed from merlin
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>

ps-id: A0F9104E-BC4D-4A88-9378-7587291A2AAF
  • Loading branch information
rgrinberg committed Feb 17, 2022
1 parent 7dffbb2 commit 36de1b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 1.10.2

## Fixes

- Catch merlin desturct exceptions (#626)

# 1.10.1

## Fixes
Expand Down
1 change: 1 addition & 0 deletions ocaml-lsp-server/src/code_actions/action_destruct.ml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ let code_action (state : State.t) doc (params : CodeActionParams.t) =
( Merlin_analysis.Destruct.Wrong_parent _ | Query_commands.No_nodes
| Merlin_analysis.Destruct.Not_allowed _
| Merlin_analysis.Destruct.Useless_refine
| Merlin_analysis.Destruct.Ill_typed
| Merlin_analysis.Destruct.Nothing_to_do )
; backtrace = _
} ->
Expand Down

0 comments on commit 36de1b2

Please sign in to comment.