diff options
Diffstat (limited to 'script/core/diagnostics/empty-block.lua')
-rw-r--r-- | script/core/diagnostics/empty-block.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/empty-block.lua b/script/core/diagnostics/empty-block.lua index 2024f4e3..fc205d7e 100644 --- a/script/core/diagnostics/empty-block.lua +++ b/script/core/diagnostics/empty-block.lua @@ -6,7 +6,7 @@ local define = require 'proto.define' -- 检查空代码块 -- 但是排除忙等待(repeat/while) return function (uri, callback) - local ast = files.getAst(uri) + local ast = files.getState(uri) if not ast then return end |