From 9c6e2784fa796777bed2d4ba17f706d2c6a0bc67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 16 Jun 2021 20:12:49 +0800 Subject: fix --- script/core/hint.lua | 3 +++ script/log.lua | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'script') 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 -- cgit v1.2.3