Skip to content

Commit 389744b

Browse files
authored
Merge pull request #3022 from andrewbraxton/dev/fix-insertTextFormat
Mark function completion items as snippets
2 parents cb964c6 + 3e0d1df commit 389744b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

script/core/completion/completion.lua

+1
Original file line numberDiff line numberDiff line change
@@ -1351,6 +1351,7 @@ local function insertEnum(state, pos, src, enums, isInArray, mark)
13511351
description = description,
13521352
kind = define.CompletionItemKind.Function,
13531353
insertText = insertText,
1354+
insertTextFormat = 2,
13541355
}
13551356
elseif src.type == 'doc.enum' then
13561357
---@cast src parser.object

0 commit comments

Comments
 (0)