completion_item_from_assignment(), which is used for document completions, hand crafts a function completion item, which means it doesn't benefit from all the smarts in completion_item_from_function() ...