diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-01-18 20:36:20 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-01-18 20:36:20 +0800 |
commit | a2075b5411c81ab4e7c3da79be1d0e6e56ea7f45 (patch) | |
tree | f318445077df15b94776314a650d83adf349a19c /script/core | |
parent | fb1d31d354648445d975fe827c237351f036c562 (diff) | |
download | lua-language-server-a2075b5411c81ab4e7c3da79be1d0e6e56ea7f45.zip |
cleanup
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/noder.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua index 6681fa7c..f648d6c5 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -1894,11 +1894,17 @@ function m.compileGlobalNodes(root) end) end +for uri in files.eachFile() do + local state = files.getState(uri) + if state then + m.compileGlobalNodes(state.ast) + end +end + files.watch(function (ev, uri) if ev == 'update' then local state = files.getState(uri) if state then - --m.compileAllNodes(state.ast) m.compileGlobalNodes(state.ast) end end |