You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it would be nice if there was a configuration option to consolidate overload function definitions in hints. Especially when they have the same number of arguments and underlying argument type
selecting any of these hitnts results in the same thing being appended to my lua file.
from there i still want all my overloads for argument suggestion (i like this behavior)
global functions already behave this way
here is the def for the example above
basically im adding exact cases to a generic where i dont want all classes that inherent a base as suggestions
Hey 👋
out of curiosity why is this a wontfix issue?
this feature as an option would be quite useful in many cases. is it just not possible with the code's current infrastructure?
here is another example of a case where it would be nice to not show all the overloads in the top level hint since its quite overwhelming
i feel honored to be the only wont fix of 500 issues
I don't think you need overloads in Root:Acquire at all. `T` should infer the correct class for you:
Also, if you put all of your classes in a specific namespace, you can avoid huge bound on T as well:
generally: yes
in this specific cases im doing some weird shenanigans to avoid certain classes and change their name under some conditions.
that function def is generated code.
i was just showing that as an example.
to me - an option to make overload hints behave as they do on global functions seems like a useful wide-usecase option
Activity
EIA485 commentedon Aug 14, 2025
Hey 👋
out of curiosity why is this a wontfix issue?
this feature as an option would be quite useful in many cases. is it just not possible with the code's current infrastructure?
here is another example of a case where it would be nice to not show all the overloads in the top level hint since its quite overwhelming
i feel honored to be the only wont fix of 500 issues
CppCXY commentedon Aug 14, 2025
Because I think overloading is a bit overused.
you can try
taminomara commentedon Aug 14, 2025
I don't think you need overloads in
Root:Acquireat all.`T`should infer the correct class for you:Also, if you put all of your classes in a specific
namespace, you can avoid huge bound onTas well:taminomara commentedon Aug 14, 2025
@CppCXY seems like a bug?
CppCXY commentedon Aug 14, 2025
---@enum(key) PropertyIndexEIA485 commentedon Aug 14, 2025
generally: yes
in this specific cases im doing some weird shenanigans to avoid certain classes and change their name under some conditions.
that function def is generated code.
i was just showing that as an example.
to me - an option to make overload hints behave as they do on global functions seems like a useful wide-usecase option
taminomara commentedon Aug 14, 2025
Sorry, I'm still not getting it... Can you elaborate please?
xuhuanzy commentedon Aug 14, 2025
--- @enum PropertyNamesactually retrieves its value, whereas---@enum(key) PropertyIndexactually retrieves its key.EIA485 commentedon Aug 14, 2025
is that documented somewhere? Ive been struggling to infer what annotations are possible
taminomara commentedon Aug 14, 2025
Yeah, but how does this help in this particular case?
taminomara commentedon Aug 14, 2025
I don't think so, documentation needs a big overhaul.
CppCXY commentedon Aug 14, 2025
Only compatible with luals.
EIA485 commentedon Aug 14, 2025
ah ok. glad im not just missing something. QQ is tricky outside of china
xuhuanzy commentedon Jun 20, 2026
Support an improvement to display literals when overloaded parameters are literals.
fix(completion): show literal params in overload details
xuhuanzy commentedon Jun 22, 2026
Now he will be like this.
fix(completion): show literal params in overload details