Skip to content

Commit 51249aa

Browse files
author
Jan Steinke
authored
Merge pull request #11 from jan-xyz/reset_
reset to original
2 parents b24e74b + e5115b4 commit 51249aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/lsp-preview/diff.lua

+3
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ function M.make_apply_func(workspace_edit, offset_encoding, orig_apply_workspace
308308
workspace_edit.changes = compactChanges(changes)
309309
end
310310
orig_apply_workspace_edits(workspace_edit, offset_encoding)
311+
-- Reset it to the original
312+
---@diagnostic disable-next-line: duplicate-set-field
313+
require("vim.lsp.util").apply_workspace_edit = orig_apply_workspace_edits
311314
end
312315
end
313316

0 commit comments

Comments
 (0)