mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
docs(lsp): fix type annotation on convert_input_to_markdown_lines (#21772)
This small changes just ensures that if you're using `convert_input_to_markdown_lines` without `contents` you don't get a warning (when using something like neodev) that there is an expected second param, since it can be nil.
This commit is contained in:
parent
a5f4ba7447
commit
443bbfd59e
@ -1508,8 +1508,8 @@ convert_input_to_markdown_lines({input}, {contents})
|
|||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
• {input} (`MarkedString` | `MarkedString[]` | `MarkupContent`)
|
• {input} (`MarkedString` | `MarkedString[]` | `MarkupContent`)
|
||||||
• {contents} (table, optional, default `{}`) List of strings to extend
|
• {contents} (table|nil) List of strings to extend with converted
|
||||||
with converted lines
|
lines. Defaults to {}.
|
||||||
|
|
||||||
Return: ~
|
Return: ~
|
||||||
{contents}, extended with lines of converted markdown.
|
{contents}, extended with lines of converted markdown.
|
||||||
|
@ -856,7 +856,7 @@ end
|
|||||||
--- `textDocument/signatureHelp`, and potentially others.
|
--- `textDocument/signatureHelp`, and potentially others.
|
||||||
---
|
---
|
||||||
---@param input (`MarkedString` | `MarkedString[]` | `MarkupContent`)
|
---@param input (`MarkedString` | `MarkedString[]` | `MarkupContent`)
|
||||||
---@param contents (table, optional, default `{}`) List of strings to extend with converted lines
|
---@param contents (table|nil) List of strings to extend with converted lines. Defaults to {}.
|
||||||
---@returns {contents}, extended with lines of converted markdown.
|
---@returns {contents}, extended with lines of converted markdown.
|
||||||
---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_hover
|
---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_hover
|
||||||
function M.convert_input_to_markdown_lines(input, contents)
|
function M.convert_input_to_markdown_lines(input, contents)
|
||||||
|
Loading…
Reference in New Issue
Block a user