Skip to content

Incorrect autocomplete #3238

@Leadwerks

Description

@Leadwerks

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

This occurs in both the Visual Studio Code integration, and in my own application using the command line.

Here is a simple example that shows three wrong suggestions.

Image

Actual Behaviour

I would not expect this situation to show any suggestions here.

Reproduction steps

Type this in a VSCode Lua file, with the caret at the end:

t = {}
t.position=3
t.affect = "test"
t.position.

Additional Notes

No response

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions