A renderer for completer widget nodes.
Create an item node (an
li element) from a ICompletionItem
for a text completer menu.
The item provided to renderer is already pre-processed by the model:
labelis escaped to ensure that no user-generated HTML is included; if
insertTextwas not originally provided, it is set to raw
label(prior to escaping) if needed,
labelhas them highlighted with
Create a documentation node (a
pre element by default) for
Create a loading indicator element for document panel.
Get a heuristic for the width of an item.
As a performance optimization completer will infer the hover box width from the widest item node which will be rendered before all other nodes. By default the widest item is selected based on label length heuristic; renderers which customize item rendering can use this method to provide a custom heuristic.
Generated using TypeDoc