summaryrefslogtreecommitdiff
path: root/script/core/completion.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-23 19:42:29 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-23 19:42:29 +0800
commitaca59aa323084ce7b1add1a6771ff0744f5834d4 (patch)
tree14f27e1b14e56fd18b7f554e1f277ad4277a8190 /script/core/completion.lua
parente185f2f4ca0df0654359537bb7df352eb0b2697b (diff)
downloadlua-language-server-aca59aa323084ce7b1add1a6771ff0744f5834d4.zip
completion shows deprecated of non-function
Diffstat (limited to 'script/core/completion.lua')
-rw-r--r--script/core/completion.lua1
1 files changed, 1 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 ()