diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-08-05 20:08:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-08-05 20:08:30 +0800 |
commit | 68e33bf512598a92e8b4432f32603c89b5cacf3a (patch) | |
tree | 2b2c82d7eadf2e534e0d1d5fb85dd91faf3938c7 /server/src/core | |
parent | e62acf2d322d509c7e9adba1e6aad7d0ba1d613f (diff) | |
download | lua-language-server-68e33bf512598a92e8b4432f32603c89b5cacf3a.zip |
修正emmy function type以OOP的形式调用时,hover第一个参数提示不正确的问题
Diffstat (limited to 'server/src/core')
-rw-r--r-- | server/src/core/hover/emmy_function.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/core/hover/emmy_function.lua b/server/src/core/hover/emmy_function.lua index 4dd89107..8c36ea2c 100644 --- a/server/src/core/hover/emmy_function.lua +++ b/server/src/core/hover/emmy_function.lua @@ -10,6 +10,9 @@ local function buildEmmyArgs(emmy, object, select) local i = 0 emmy:eachParam(function (name, typeObj) i = i + 1 + if i < start then + return + end if i > start then strs[#strs+1] = ', ' end |