diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-08 15:20:20 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-08 15:20:20 +0800 |
commit | e96350421a66ac8490fa61336dcacd67413dd2e8 (patch) | |
tree | b5d18d9cd944505173f3e6aad1224e7c2e4916d5 /script | |
parent | 8d74c9161fc39c08ad7df61e6ee36eae440c5410 (diff) | |
download | lua-language-server-e96350421a66ac8490fa61336dcacd67413dd2e8.zip |
clear node cache after reload workspace
Diffstat (limited to 'script')
-rw-r--r-- | script/vm/node.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/script/vm/node.lua b/script/vm/node.lua index e76542aa..6a86350a 100644 --- a/script/vm/node.lua +++ b/script/vm/node.lua @@ -315,3 +315,9 @@ files.watch(function (ev, uri) end end end) + +ws.watch(function (ev, uri) + if ev == 'reload' then + vm.clearNodeCache() + end +end) |