CompletionInfo

external interface CompletionInfo(source)

Properties

Link copied to clipboard

Default commit characters for the completion entries.

Link copied to clipboard
abstract external var entries: ReadonlyArray<CompletionEntry>
Link copied to clipboard
abstract external var flags: CompletionInfoFlags?

For performance telemetry.

Link copied to clipboard
abstract external var isGlobalCompletion: Boolean

Not true for all global completions. This will be true if the enclosing scope matches a few syntax kinds. See isSnippetScope.

Link copied to clipboard
abstract external var isIncomplete: Boolean?

Indicates to client to continue requesting completions on subsequent keystrokes.

Link copied to clipboard
abstract external var isMemberCompletion: Boolean
Link copied to clipboard
abstract external var isNewIdentifierLocation: Boolean

true when the current location also allows for a new identifier

Link copied to clipboard
abstract external var optionalReplacementSpan: TextSpan?

In the absence of CompletionEntry["replacementSpan"], the editor may choose whether to use this span or its default one. If CompletionEntry["replacementSpan"] is defined, that span must be used to commit that completion entry.