summaryrefslogtreecommitdiff
path: root/script/core/reference.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/reference.lua')
-rw-r--r--script/core/reference.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/reference.lua b/script/core/reference.lua
index c3f3b349..6ea79f5f 100644
--- a/script/core/reference.lua
+++ b/script/core/reference.lua
@@ -53,7 +53,7 @@ local accept = {
}
return function (uri, offset)
- local ast = files.getAst(uri)
+ local ast = files.getState(uri)
if not ast then
return nil
end