summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/core/hint.lua3
-rw-r--r--script/log.lua2
2 files changed, 4 insertions, 1 deletions
diff --git a/script/core/hint.lua b/script/core/hint.lua
index 2c449ae6..67c725f7 100644
--- a/script/core/hint.lua
+++ b/script/core/hint.lua
@@ -19,6 +19,9 @@ local function typeHint(uri, edits, start, finish)
and source.type ~= 'setindex' then
return
end
+ if source.dummy then
+ return
+ end
if source[1] == '_' then
return
end
diff --git a/script/log.lua b/script/log.lua
index d27da1f0..c3bf02d4 100644
--- a/script/log.lua
+++ b/script/log.lua
@@ -1,7 +1,7 @@
local fs = require 'bee.filesystem'
local time = require 'bee.time'
-local monotonic = os.clock
+local monotonic = time.monotonic
local osDate = os.date
local ioOpen = io.open
local tablePack = table.pack