diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2024-06-11 20:52:28 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2024-06-11 20:52:28 +0800 |
commit | 3101cfb948694389cf1cc9cdbba99267f6290508 (patch) | |
tree | f3bd3325af4c64695b7d85a7150ba9c797624206 /script | |
parent | f437ac3594cf56cbd6ce5160a03e716f5192e85e (diff) | |
download | lua-language-server-3101cfb948694389cf1cc9cdbba99267f6290508.zip |
`FIX` Sometimes providing incorrect autocompletion when chaining calls
Diffstat (limited to 'script')
-rw-r--r-- | script/core/completion/completion.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua index 242bf449..cff9c385 100644 --- a/script/core/completion/completion.lua +++ b/script/core/completion/completion.lua @@ -1594,6 +1594,12 @@ local function findCall(state, position) end end end) + if not call then + return nil + end + if call.node.finish > position then + return nil + end return call end |