summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/undefined-env-child.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/diagnostics/undefined-env-child.lua')
-rw-r--r--script/core/diagnostics/undefined-env-child.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/undefined-env-child.lua b/script/core/diagnostics/undefined-env-child.lua
index ea9d1c4c..39c8de27 100644
--- a/script/core/diagnostics/undefined-env-child.lua
+++ b/script/core/diagnostics/undefined-env-child.lua
@@ -5,7 +5,7 @@ local lang = require 'language'
local vm = require "vm.vm"
return function (uri, callback)
- local ast = files.getAst(uri)
+ local ast = files.getState(uri)
if not ast then
return
end