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:
label
is escaped to ensure that no user-generated HTML is included;
if insertText
was not originally provided, it is set to raw label
(prior to escaping) if needed,label
has them
highlighted with <mark>
s.Optional
createCreate a documentation node (a pre
element by default) for
documentation panel.
Optional
createCreate a loading indicator element for document panel.
Optional
itemGet 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.
A renderer for completer widget nodes.