diff options
Diffstat (limited to 'server/src/core/hover/emmy_function.lua')
-rw-r--r-- | server/src/core/hover/emmy_function.lua | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/server/src/core/hover/emmy_function.lua b/server/src/core/hover/emmy_function.lua index e14e88c5..37b44a79 100644 --- a/server/src/core/hover/emmy_function.lua +++ b/server/src/core/hover/emmy_function.lua @@ -124,15 +124,10 @@ return function (name, emmy, object, select) local returns = buildEmmyReturns(emmy) local enum, rawEnum = buildEnum(emmy) local tip = emmy.description - local headLen = #('function %s('):format(name) - local title = ('function %s(%s)'):format(name, argStr) - if argLabel then - argLabel[1] = argLabel[1] + headLen - argLabel[2] = argLabel[2] + headLen - end return { - label = title .. returns, - title = title, + label = ('function %s(%s)%s'):format(name, argStr, returns), + name = name, + argStr = argStr, returns = returns, description = tip, enum = enum, |