A structured label for a {@link CompletionItem completion item}.

Fields

label:String

The label of this completion item.

By default this is also the text that is inserted when this completion is selected.

@:optionaloptionaldetail:Null<String>

An optional string which is rendered less prominently directly after {@link CompletionItemLabel.label label}, without any spacing. Should be used for function signatures or type annotations.

@:optionaloptionaldescription:Null<String>

An optional string which is rendered less prominently after {@link CompletionItemLabel.detail}. Should be used for fully qualified names or file path.