aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2022-01-13 09:28:27 -0800
committerGitHub <noreply@github.com>2022-01-13 18:28:27 +0100
commit8066abcd65a672010e7159bcb9601f6eb5481e81 (patch)
tree1ded8ae9432a70552cd39db56827a2522c4dc126 /runtime/lua/vim/lsp/util.lua
parent9304ee3874fc1e0608a9902cf5b1b0ac6645ef0a (diff)
downloadrneovim-8066abcd65a672010e7159bcb9601f6eb5481e81.tar.gz
rneovim-8066abcd65a672010e7159bcb9601f6eb5481e81.tar.bz2
rneovim-8066abcd65a672010e7159bcb9601f6eb5481e81.zip
fix(lsp): forward offset_encoding in rename handler (#17079)
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index edb9f50d20..4cbd8c9554 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -737,7 +737,8 @@ end
--- Applies a `WorkspaceEdit`.
---
----@param workspace_edit (table) `WorkspaceEdit`
+---@param workspace_edit table `WorkspaceEdit`
+---@param offset_encoding string utf-8|utf-16|utf-32 (required)
--see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_applyEdit
function M.apply_workspace_edit(workspace_edit, offset_encoding)
if offset_encoding == nil then