diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-16 20:12:49 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-16 20:12:49 +0800 |
commit | 9c6e2784fa796777bed2d4ba17f706d2c6a0bc67 (patch) | |
tree | ecb2a96c2621934b85ff280473a771350517c261 | |
parent | 7ea152ca14332a637b4b2eb6f1fda103ceb7377b (diff) | |
download | lua-language-server-9c6e2784fa796777bed2d4ba17f706d2c6a0bc67.zip |
fix
-rw-r--r-- | script/core/hint.lua | 3 | ||||
-rw-r--r-- | script/log.lua | 2 |
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 |