Skip to content

CompletionItemKind

Not yet Enum

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

Not implemented in Nova

This enum is missing from Nova. Scripts that reference it will fail.

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.

Items

Item Value Status Notes
Text 1 Not yet Indicates the completion item represents a plain text suggestion.
Method 2 Not yet Indicates the completion item represents a method on a class or object.
Function 3 Not yet Indicates the completion item represents a function.
Constructor 4 Not yet Indicates the completion item represents a constructor.
Field 5 Not yet Indicates the completion item represents a field within a record or struct.
Variable 6 Not yet Indicates the completion item represents a variable binding.
Class 7 Not yet Indicates the completion item represents a class or type definition.
Interface 8 Not yet Indicates the completion item represents an interface type.
Module 9 Not yet Indicates the completion item represents a module.
Property 10 Not yet Indicates the completion item represents a property on a class or object.
Unit 11 Not yet Indicates the completion item represents a unit of measurement or a module-level value.
Value 12 Not yet Indicates the completion item represents a value expression.
Enum 13 Not yet Indicates the completion item represents an enum type.
Keyword 14 Not yet Indicates the completion item represents a language keyword.
Snippet 15 Not yet Indicates the completion item represents an insertable code snippet with tab stops.
Color 16 Not yet Indicates the completion item represents a color value.
File 17 Not yet Indicates the completion item represents a file reference.
Reference 18 Not yet Indicates the completion item represents a reference to another symbol.
Folder 19 Not yet Indicates the completion item represents a folder or directory.
EnumMember 20 Not yet Indicates the completion item represents an individual enum member value.
Constant 21 Not yet Indicates the completion item represents a constant value.
Struct 22 Not yet Indicates the completion item represents a struct or table type.
Event 23 Not yet Indicates the completion item represents an event.
Operator 24 Not yet Indicates the completion item represents an operator.
TypeParameter 25 Not yet Indicates the completion item represents a generic type parameter.

Roblox reference: CompletionItemKind