Skip to content

Commit e963504

Browse files
committed
clear node cache after reload workspace
1 parent 8d74c91 commit e963504

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

script/vm/node.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,3 +315,9 @@ files.watch(function (ev, uri)
315315
end
316316
end
317317
end)
318+
319+
ws.watch(function (ev, uri)
320+
if ev == 'reload' then
321+
vm.clearNodeCache()
322+
end
323+
end)

0 commit comments

Comments
 (0)