Skip to content

Commit

Permalink
reset to original
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Steinke committed Apr 9, 2024
1 parent b24e74b commit e5115b4
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 e5115b4

Please sign in to comment.