Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions analysis/src/Xform.ml
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,13 @@ module TypeToModule = struct
match documentChange with
| TextDocumentEdit textEdit ->
let textDocument = textEdit.textDocument in
(* Ignores first edit as it is within range of code action *)
let edits =
match textEdit.edits with
| _ :: rest -> rest
| _ -> []
if textEdit.textDocument.uri = uri then
(* Ignores first edit as it is within range of code action *)
match textEdit.edits with
| _ :: rest -> rest
| _ -> []
else textEdit.edits
in
Protocol.TextDocumentEdit {textDocument; edits}
| _ -> documentChange)
Expand Down