resolveCompletionItem
abstract var resolveCompletionItem: (item: T, token: CancellationToken) -> ProviderResult<T>?(source)
Given a completion item fill in more data, like doc-comment or details.
The editor will only resolve a completion item once.
Note that this function is called when completion items are already showing in the UI or when an item has been selected for insertion. Because of that, no property that changes the presentation (label, sorting, filtering etc) or the (primary) insert behaviour (insertText) can be changed.
This function may fill in additionalTextEdits. However, that means an item might be inserted before resolving is done and in that case the editor will do a best effort to still apply those additional text edits.
Parameters
item
A completion item currently active in the UI.
token
A cancellation token.