Reference API Roblox

Engine API

Website

Related

Reference API Roblox

CompletionItemKind

Indicates the category of a script editor autocomplete suggestion, controlling its icon and display in the completion list.

Items 25

HistoryNameValueDescription
545Text1

Indicates the completion item represents a plain text suggestion.

545Method2

Indicates the completion item represents a method on a class or object.

545Function3

Indicates the completion item represents a function.

545Constructor4

Indicates the completion item represents a constructor.

545Field5

Indicates the completion item represents a field within a record or struct.

545Variable6

Indicates the completion item represents a variable binding.

545Class7

Indicates the completion item represents a class or type definition.

545Interface8

Indicates the completion item represents an interface type.

545Module9

Indicates the completion item represents a module.

545Property10

Indicates the completion item represents a property on a class or object.

545Unit11

Indicates the completion item represents a unit of measurement or a module-level value.

545Value12

Indicates the completion item represents a value expression.

545Enum13

Indicates the completion item represents an enum type.

545Keyword14

Indicates the completion item represents a language keyword.

545Snippet15

Indicates the completion item represents an insertable code snippet with tab stops.

545Color16

Indicates the completion item represents a color value.

545File17

Indicates the completion item represents a file reference.

545Reference18

Indicates the completion item represents a reference to another symbol.

545Folder19

Indicates the completion item represents a folder or directory.

545EnumMember20

Indicates the completion item represents an individual enum member value.

545Constant21

Indicates the completion item represents a constant value.

545Struct22

Indicates the completion item represents a struct or table type.

545Event23

Indicates the completion item represents an event.

545Operator24

Indicates the completion item represents an operator.

545TypeParameter25

Indicates the completion item represents a generic type parameter.

Description

Describes the semantic category of an item returned by the Luau Language Server Protocol (LSP) autocomplete provider. Roblox Studio's script editor uses this value to select the icon shown next to each completion item and to apply autocomplete scoring and filtering logic.

This enum mirrors the LSP CompletionItemKind specification (values 1–25). Plugins that register an autocomplete callback via ScriptEditorService:RegisterAutocompleteCallback() may set the kind field on each CompletionItem to one of these values to hint how their suggestion should be presented.

History 26

Settings