feat(lsp.util): remove lsp spec extract

This commit is contained in:
Lewis Russell
2024-10-15 17:02:14 +01:00
parent 0066dd0f65
commit 0e8568d72c

View File

@ -849,24 +849,6 @@ function M.convert_signature_help_to_markdown_lines(signature_help, ft, triggers
local parameter = signature.parameters[active_parameter + 1]
local parameter_label = parameter.label
--[=[
--Represents a parameter of a callable-signature. A parameter can
--have a label and a doc-comment.
interface ParameterInformation {
--The label of this parameter information.
--
--Either a string or an inclusive start and exclusive end offsets within its containing
--signature label. (see SignatureInformation.label). The offsets are based on a UTF-16
--string representation as `Position` and `Range` does.
--
--*Note*: a label of type string should be a substring of its containing signature label.
--Its intended use case is to highlight the parameter label part in the `SignatureInformation.label`.
label: string | [number, number];
--The human-readable doc-comment of this parameter. Will be shown
--in the UI but can be omitted.
documentation?: string | MarkupContent;
}
--]=]
if type(parameter_label) == 'table' then
active_offset = parameter_label
else