japhib / pico8-ls

PICO-8 Language Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autocomplete duplicates table and access operator

Minimistro32 opened this issue · comments

If I a return a table from a function, when I enter the table name and the 'dot' operator, autocomplete duplicates the table name and dot operator I already typed. (Here I am returning the table from an included file, but after further testing I realized that isn't a requirement to reproduce the bug.)

I'm unfamiliar with language servers and the code base for this extension, but I wonder if the entire table.property is being interpreted as one unit because the table definition isn't obvious.


BEFORE
Main File:
bug_kate_p8_—_carts
Included File:
bug_lua_—_carts

AFTER
bug_kate_p8_—_carts

Fixed with c82df21, not released yet but planning on cutting a release soon

Released with 0.5.2 just now