diff options
author | Maria José Solano <majosolano99@gmail.com> | 2023-09-29 08:37:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-29 17:37:14 +0200 |
commit | 9ed830a3ca5847a9152b91fca5e1eaf712bed55b (patch) | |
tree | 6dd4d7486a5e95ab9670c75312ff3a80e934e6ec /runtime/lua/vim/lsp/util.lua | |
parent | af7d317f3ff31d5ac5d8724b5057a422e1451b54 (diff) | |
download | rneovim-9ed830a3ca5847a9152b91fca5e1eaf712bed55b.tar.gz rneovim-9ed830a3ca5847a9152b91fca5e1eaf712bed55b.tar.bz2 rneovim-9ed830a3ca5847a9152b91fca5e1eaf712bed55b.zip |
refactor(lsp): deprecate util methods (#25400)
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 0d1e3cc0d1..51ed87219c 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -168,10 +168,12 @@ end local _str_utfindex_enc = M._str_utfindex_enc local _str_byteindex_enc = M._str_byteindex_enc + --- Replaces text in a range with new text. --- --- CAUTION: Changes in-place! --- +---@deprecated ---@param lines (table) Original list of strings ---@param A (table) Start position; a 2-tuple of {line,col} numbers ---@param B (table) End position; a 2-tuple of {line,col} numbers @@ -320,9 +322,7 @@ local function get_line(bufnr, row) end --- Position is a https://microsoft.github.io/language-server-protocol/specifications/specification-current/#position ---- Returns a zero-indexed column, since set_lines() does the conversion to ---@param offset_encoding string|nil utf-8|utf-16|utf-32 ---- 1-indexed ---@return integer local function get_line_byte_from_position(bufnr, position, offset_encoding) -- LSP's line and characters are 0-indexed @@ -1991,6 +1991,7 @@ end --- --- CAUTION: Modifies the input in-place! --- +---@deprecated ---@param lines table list of lines ---@return string filetype or "markdown" if it was unchanged. function M.try_trim_markdown_code_blocks(lines) |