Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show function info for __call metamethods #724

Closed
gaymeowing opened this issue Jul 29, 2024 · 2 comments
Closed

Show function info for __call metamethods #724

gaymeowing opened this issue Jul 29, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@gaymeowing
Copy link

Currently luau lsp doesnt show the ui w the function arguments and descriptions for __call metamethods, despite __call being basically a function

@JohnnyMorganz JohnnyMorganz added the enhancement New feature or request label Jul 30, 2024
@JohnnyMorganz
Copy link
Owner

Can you provide a specific code example for this?

@gaymeowing
Copy link
Author

Oops forgot about this for a bit, apologies but heres an example

local mt = {}

--[[
    test
--]]
function mt.__call(self: any, meow: "mrrp")

end

local tbl = setmetatable({}, mt)
-- doesnt show the ui that shows the function args, and the functions doc comment
tbl()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants