diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2024-08-15 14:49:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-15 14:49:23 +0800 |
commit | d32b49d5a27840bfa4079ba708de4ed3c01b816f (patch) | |
tree | 100b9211a00bb379cf1039b07e0346859e9bb7e6 /script/core/hint.lua | |
parent | 390cf8fd09fa577f9bdc7a4e3c82e6f3b2b3eacd (diff) | |
parent | c51f0389096e12a02711b911b7272f49910b1f1b (diff) | |
download | lua-language-server-d32b49d5a27840bfa4079ba708de4ed3c01b816f.zip |
Merge branch 'master' into feat/deforder
Diffstat (limited to 'script/core/hint.lua')
-rw-r--r-- | script/core/hint.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/hint.lua b/script/core/hint.lua index 9d098aa9..b0ff5aa7 100644 --- a/script/core/hint.lua +++ b/script/core/hint.lua @@ -287,6 +287,8 @@ local function semicolonHint(uri, results, start, finish) ---@async guide.eachSourceTypes(state.ast, blockTypes, function (src) await.delay() + if #src < 1 then return end + for i = 1, #src - 1 do local current = src[i] local next = src[i+1] @@ -313,6 +315,7 @@ local function semicolonHint(uri, results, start, finish) end end end + if mode == 'All' then local last = src[#src] results[#results+1] = { |