Skip to content

Commit 6a89448

Browse files
committed
change flag
1 parent 0ccf364 commit 6a89448

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

script/global.d.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,7 @@ LOGLEVEL = 'warn'
5656

5757
---@type boolean
5858
LAZY = false
59+
60+
-- (experiment) Improve performance, but reduce accuracy
61+
---@type boolean
62+
CACHEALIVE = false

script/vm/node.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ local delayTimer
481481
files.watch(function (ev, uri)
482482
if ev == 'version' then
483483
if ws.isReady(uri) then
484-
if PREVIEW then
484+
if CACHEALIVE then
485485
if delayTimer then
486486
delayTimer:restart()
487487
end

0 commit comments

Comments
 (0)