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

Completion of table keys #1698

Closed
firas-assaad opened this issue Nov 14, 2022 · 1 comment
Closed

Completion of table keys #1698

firas-assaad opened this issue Nov 14, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@firas-assaad
Copy link
Contributor

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Completion

Expected Behaviour

image

Actual Behaviour

image

Reproduction steps

I remember that the table keys used to be correctly suggested in a previous version. In my real example I use a table<string, CustomClassType> instead of integer. I want to annotate it as table to enable type checking and coloring for the table elements.

    ---@type table<string, integer>
    local x = {
        a = 1,
        b = 2,
        c = 3
    }

    x. -- <- try to complete here

Additional Notes

No response

Log File

No response

@carsakiller
Copy link
Collaborator

Able to reproduce. Maybe related to whatever fixed #1655?

@sumneko sumneko added the bug Something isn't working label Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants