diff options
-rw-r--r-- | script/core/completion.lua | 1 | ||||
-rw-r--r-- | test/completion/init.lua | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua index 731bd3ad..faa8fb41 100644 --- a/script/core/completion.lua +++ b/script/core/completion.lua @@ -396,6 +396,7 @@ local function checkFieldThen(name, src, word, start, offset, parent, oop, resul results[#results+1] = { label = name, kind = kind, + deprecated = vm.isDeprecated(src) or nil, textEdit = textEdit, additionalTextEdits = additionalTextEdits, id = stack(function () diff --git a/test/completion/init.lua b/test/completion/init.lua index 49f08e85..b5eac60b 100644 --- a/test/completion/init.lua +++ b/test/completion/init.lua @@ -1217,6 +1217,17 @@ loadstring$ } TEST [[ +bit32$ +]] +{ + { + label = 'bit32', + kind = define.CompletionItemKind.Field, + deprecated = true, + }, +} + +TEST [[ function loadstring() end loadstring$ |