summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-08 15:20:20 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-08 15:20:20 +0800
commite96350421a66ac8490fa61336dcacd67413dd2e8 (patch)
treeb5d18d9cd944505173f3e6aad1224e7c2e4916d5 /script
parent8d74c9161fc39c08ad7df61e6ee36eae440c5410 (diff)
downloadlua-language-server-e96350421a66ac8490fa61336dcacd67413dd2e8.zip
clear node cache after reload workspace
Diffstat (limited to 'script')
-rw-r--r--script/vm/node.lua6
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)