CompletionEntry

sealed external interface CompletionEntry(source)

Properties

Link copied to clipboard
abstract var data: CompletionEntryData?

A property to be sent back to TS Server in the CompletionDetailsRequest, along with name, that allows TS Server to look up the symbol represented by the completion item, disambiguating items with the same name. Currently only defined for auto-import completions, but the type is unknown in the protocol, so it can be changed as needed to support other kinds of completions. The presence of this property should generally not be used to assume that this completion entry is an auto-import.

Link copied to clipboard
abstract var filterText: String?
Link copied to clipboard
abstract var hasAction: Boolean?
Link copied to clipboard
abstract var insertText: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract var isRecommended: Boolean?
Link copied to clipboard
abstract var isSnippet: Boolean?
Link copied to clipboard
abstract var kind: ScriptElementKind
Link copied to clipboard
abstract var kindModifiers: String?
Link copied to clipboard
Link copied to clipboard
abstract var name: String
Link copied to clipboard
abstract var replacementSpan: TextSpan?

An optional span that indicates the text to be replaced by this completion item. If present, this span should be used instead of the default one. It will be set if the required span differs from the one generated by the default replacement behavior.

Link copied to clipboard
abstract var sortText: String
Link copied to clipboard
abstract var source: String?
Link copied to clipboard
Link copied to clipboard
abstract var symbol: Symbol?

For API purposes. Included for non-string completions only when includeSymbol: true option is passed to getCompletionsAtPosition.