diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-22 01:24:54 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-22 01:24:54 +0800 |
commit | 830ed2da7277d3ea6f204e63d0f2c51614cdf7d9 (patch) | |
tree | 60693601d40b69a45221b6cdbd3e6ff9cc3ecd23 /script/core/noder.lua | |
parent | eabcaf844cee70d5a57f9baa44a167e6889a5677 (diff) | |
download | lua-language-server-830ed2da7277d3ea6f204e63d0f2c51614cdf7d9.zip |
fix
Diffstat (limited to 'script/core/noder.lua')
-rw-r--r-- | script/core/noder.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua index 89be1e62..ffd51bfd 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -1080,7 +1080,9 @@ files.watch(function (ev, uri) uri = files.asKey(uri) if ev == 'update' then local state = files.getState(uri) - m.compileNodes(state.ast) + if state then + m.compileNodes(state.ast) + end end if ev == 'remove' then collector.dropUri(uri) |