CompletionItemKind
Indicates the category of a script editor autocomplete suggestion, controlling its icon and display in the completion list.
Items 25
| History | Name | Value | Description | |
|---|---|---|---|---|
| 545 | Text | 1 | Indicates the completion item represents a plain text suggestion. | |
| 545 | Method | 2 | Indicates the completion item represents a method on a class or object. | |
| 545 | Function | 3 | Indicates the completion item represents a function. | |
| 545 | Constructor | 4 | Indicates the completion item represents a constructor. | |
| 545 | Field | 5 | Indicates the completion item represents a field within a record or struct. | |
| 545 | Variable | 6 | Indicates the completion item represents a variable binding. | |
| 545 | Class | 7 | Indicates the completion item represents a class or type definition. | |
| 545 | Interface | 8 | Indicates the completion item represents an interface type. | |
| 545 | Module | 9 | Indicates the completion item represents a module. | |
| 545 | Property | 10 | Indicates the completion item represents a property on a class or object. | |
| 545 | Unit | 11 | Indicates the completion item represents a unit of measurement or a module-level value. | |
| 545 | Value | 12 | Indicates the completion item represents a value expression. | |
| 545 | Enum | 13 | Indicates the completion item represents an enum type. | |
| 545 | Keyword | 14 | Indicates the completion item represents a language keyword. | |
| 545 | Snippet | 15 | Indicates the completion item represents an insertable code snippet with tab stops. | |
| 545 | Color | 16 | Indicates the completion item represents a color value. | |
| 545 | File | 17 | Indicates the completion item represents a file reference. | |
| 545 | Reference | 18 | Indicates the completion item represents a reference to another symbol. | |
| 545 | Folder | 19 | Indicates the completion item represents a folder or directory. | |
| 545 | EnumMember | 20 | Indicates the completion item represents an individual enum member value. | |
| 545 | Constant | 21 | Indicates the completion item represents a constant value. | |
| 545 | Struct | 22 | Indicates the completion item represents a struct or table type. | |
| 545 | Event | 23 | Indicates the completion item represents an event. | |
| 545 | Operator | 24 | Indicates the completion item represents an operator. | |
| 545 | TypeParameter | 25 | 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
- 545 Add Variable
- 545 Add Value
- 545 Add Unit
- 545 Add TypeParameter
- 545 Add Text
- 545 Add Struct
- 545 Add Snippet
- 545 Add Reference
- 545 Add Property
- 545 Add Operator
- 545 Add Module
- 545 Add Method
- 545 Add Keyword
- 545 Add Interface
- 545 Add Function
- 545 Add Folder
- 545 Add File
- 545 Add Field
- 545 Add Event
- 545 Add EnumMember
- 545 Add Enum
- 545 Add Constructor
- 545 Add Constant
- 545 Add Color
- 545 Add Class
- 545 Add CompletionItemKind