japhib / pico8-ls

PICO-8 Language Server
MIT License
64 stars 8 forks source link

autocomplete duplicates table and access operator #40

Closed Minimistro32 closed 9 months ago

Minimistro32 commented 1 year ago

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

japhib commented 9 months ago

Fixed with https://github.com/japhib/pico8-ls/commit/c82df210a67086b252e06fcaea3fd018823b77d3, not released yet but planning on cutting a release soon

japhib commented 9 months ago

Released with 0.5.2 just now