Ryex / ic10emu

A Stationeers IC10 code editor and emulator
https://ic10emu.dev/
Apache License 2.0
7 stars 2 forks source link

Autocomplete messes up spans #3

Closed Emilgardis closed 6 months ago

Emilgardis commented 6 months ago

Using autocomplete seems to place the span for replacement wrong, where the last character entered before pressing enter will be put before the completion. undoing the complete makes the wrong selection

image

https://github.com/Ryex/ic10emu/assets/1502855/801685ea-92d7-447e-8c23-efc19650b23e

I've reproduced this in FF and Edge

Ryex commented 6 months ago

I believe this is an error with ace-linters I have console logs sitting between the server and client so I can see that the completion suggestions are sent correctly image so It knows to start from character 15. but it could also be an error all they way up in Ace itself.

Ryex commented 6 months ago

fixed in d9a8a9f