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

No completions for arrayrecords #53

Open
overcrook opened this issue Jul 2, 2022 · 1 comment
Open

No completions for arrayrecords #53

overcrook opened this issue Jul 2, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@overcrook
Copy link

It seems that arrayrecords are not being parsed properly. I'm using tl v0.13.1 and vscode-teal v0.8.3.

The snippet (pasted below) runs just fine, but there are no completions for a.arrayrecord. There are no errors in vscode either.
Here is the snippet:

local record A
    record B
        name: string
    end
    record BArray
        {B}
    end

    array: {B}
    arrayrecord: BArray
end

local a: A = {
    array = {
        {
            name = 'A.array[1]'
        }
    },
    arrayrecord = {
        {
            name = 'A.arrayrecord[1]'
        }
    }
}

print(a.array[1].name)
print(a.arrayrecord[1].name)

There is only standard vscode completion:

no suggestions for the arrayrecord

Comparing with regular arrays:

suggestion for the array

@overcrook
Copy link
Author

Just checked the latest teal version 0.13.2+dev (commit ce5c741efde0c7417ca443eb268a744e2fd738c4) with the same result.

@pdesaulniers pdesaulniers added the bug Something isn't working label Jul 2, 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

2 participants