Skip to content

No member completions offered for variable of type T | Unknown #2197

@rodrigoscc

Description

@rodrigoscc

Summary

Hello,

I've found a case where autocomplete won't work even tho the type of the variable is clear. It is when I iterate over a list, the variable attributes are not autocompleted inside the for loop:
Image

i type is correctly detected as Unknown | A and I can even go to definition of its attributes, but autocomplete doesn't work. Here's the playground link: https://play.ty.dev/80851291-8503-4aaf-b5aa-f286949c820b

Thanks for this amazing LSP! :)

Version

0.0.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcompletionsBugs or features relating to autocomplete suggestionsserverRelated to the LSP server

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions