diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2024-04-17 18:29:12 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2024-04-17 18:29:12 +0800 |
commit | 9f97b95a71e33d0f63b482fe7d2142dc4dda0716 (patch) | |
tree | 4c04398ce2dbeeda50a5af177773302b80b04f07 /script | |
parent | 968aca97f67897583f9c5cec02b5901eeef2c86b (diff) | |
download | lua-language-server-9f97b95a71e33d0f63b482fe7d2142dc4dda0716.zip |
修正 `discard-returns` 对条件的误报
Diffstat (limited to 'script')
-rw-r--r-- | script/core/diagnostics/discard-returns.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/diagnostics/discard-returns.lua b/script/core/diagnostics/discard-returns.lua index 9e573596..37d36214 100644 --- a/script/core/diagnostics/discard-returns.lua +++ b/script/core/diagnostics/discard-returns.lua @@ -15,6 +15,9 @@ return function (uri, callback) if not guide.isBlockType(source.parent) then return end + if source.parent.filter == source then + return + end await.delay() if vm.isNoDiscard(source.node, true) then callback { |