Skip to content

[Feature] Infer types from unpack call #1353

New issue

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

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

Already on GitHub? # to your account

Closed
Feez opened this issue Jul 19, 2022 · 0 comments · Fixed by #2587
Closed

[Feature] Infer types from unpack call #1353

Feez opened this issue Jul 19, 2022 · 0 comments · Fixed by #2587
Labels
enhancement New feature or request

Comments

@Feez
Copy link

Feez commented Jul 19, 2022

If we know enough information about the type passed into unpack, we could infer the unpacked values as a result. For example:

image

We know that both x and y are of type string based on the table passed in. It would be nice to have this as a feature :)

@sumneko sumneko added the enhancement New feature or request label Jul 19, 2022
lewis6991 added a commit to lewis6991/lua-language-server that referenced this issue Mar 26, 2024
lewis6991 added a commit to lewis6991/lua-language-server that referenced this issue Apr 17, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants