japhib / pico8-ls

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

reset() not recognized #35

Closed miguno closed 1 year ago

miguno commented 1 year ago

pico8-ls reports the pico-8 built-in function reset() as "undefined variable: reset", see screenshot. The code is pico-8's default jelpi.p8 cart.

Screenshot 2022-12-15 at 16 30 24
japhib commented 1 year ago

Thanks for reporting! This should be as simple as adding an entry for reset in the list of built-in functions here: https://github.com/japhib/pico8-ls/blob/master/server/src/parser/builtins.ts

miguno commented 1 year ago

Thanks for the quick reply! PR is up at https://github.com/japhib/pico8-ls/pull/36

japhib commented 1 year ago

Merged!

miguno commented 1 year ago

Thank you!

japhib commented 1 year ago

Released with 0.4.9 just now -- new version should be available in vscode within a few minutes.