summaryrefslogtreecommitdiff
path: root/script/core/completion.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/completion.lua')
-rw-r--r--script/core/completion.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index acaaa276..9f35c4ac 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -322,7 +322,7 @@ local function checkModule(ast, word, offset, results)
and not config.config.diagnostics.globals[stemName]
and stemName:match '^[%a_][%w_]*$'
and matchKey(word, stemName) then
- local targetAst = files.getAst(uri)
+ local targetAst = files.getState(uri)
if not targetAst then
goto CONTINUE
end
@@ -1925,7 +1925,7 @@ local function completion(uri, offset, triggerCharacter)
return results
end
tracy.ZoneBeginN 'completion #1'
- local ast = files.getAst(uri)
+ local ast = files.getState(uri)
local text = files.getText(uri)
results = {}
clearStack()