diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-01-04 14:08:18 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-01-04 14:08:18 +0800 |
commit | 7a63f98e41305e8deb114164e86a621881a5a2bc (patch) | |
tree | b0b896705194e7a825432f61d2fb33cf209e8afb | |
parent | 9a05e36904e91008aa9314a83e476130a1e7c277 (diff) | |
download | lua-language-server-7a63f98e41305e8deb114164e86a621881a5a2bc.zip |
fix
-rw-r--r-- | script/core/completion.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua index 98a30998..ba848272 100644 --- a/script/core/completion.lua +++ b/script/core/completion.lua @@ -1640,7 +1640,7 @@ local function tryComment(ast, text, offset, results) if doc and doc.type ~= 'doc.comment' then return end - checkCommon(word, text, offset, results) + checkCommon(ast, word, text, offset, results) end local function completion(uri, offset) @@ -1662,7 +1662,7 @@ local function completion(uri, offset) else local word = findWord(text, offset) if word then - checkCommon(word, text, offset, results) + checkCommon(ast, word, text, offset, results) end end |