Roblox UtilitiesDevlHub Roblox Documentation

Enum

CompletionItemKind

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

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.

Items 25#

NameValueSummary
Text1Indicates the completion item represents a plain text suggestion.
Method2Indicates the completion item represents a method on a class or object.
Function3Indicates the completion item represents a function.
Constructor4Indicates the completion item represents a constructor.
Field5Indicates the completion item represents a field within a record or struct.
Variable6Indicates the completion item represents a variable binding.
Class7Indicates the completion item represents a class or type definition.
Interface8Indicates the completion item represents an interface type.
Module9Indicates the completion item represents a module.
Property10Indicates the completion item represents a property on a class or object.
Unit11Indicates the completion item represents a unit of measurement or a module-level value.
Value12Indicates the completion item represents a value expression.
Enum13Indicates the completion item represents an enum type.
Keyword14Indicates the completion item represents a language keyword.
Snippet15Indicates the completion item represents an insertable code snippet with tab stops.
Color16Indicates the completion item represents a color value.
File17Indicates the completion item represents a file reference.
Reference18Indicates the completion item represents a reference to another symbol.
Folder19Indicates the completion item represents a folder or directory.
EnumMember20Indicates the completion item represents an individual enum member value.
Constant21Indicates the completion item represents a constant value.
Struct22Indicates the completion item represents a struct or table type.
Event23Indicates the completion item represents an event.
Operator24Indicates the completion item represents an operator.
TypeParameter25Indicates the completion item represents a generic type parameter.