Skip to content

Commit

Permalink
Merge pull request #11 from jan-xyz/reset_
Browse files Browse the repository at this point in the history
reset to original
  • Loading branch information
Jan Steinke authored Apr 9, 2024
2 parents b24e74b + e5115b4 commit 51249aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/lsp-preview/diff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ function M.make_apply_func(workspace_edit, offset_encoding, orig_apply_workspace
workspace_edit.changes = compactChanges(changes)
end
orig_apply_workspace_edits(workspace_edit, offset_encoding)
-- Reset it to the original
---@diagnostic disable-next-line: duplicate-set-field
require("vim.lsp.util").apply_workspace_edit = orig_apply_workspace_edits
end
end

Expand Down

0 comments on commit 51249aa

Please sign in to comment.