Pasted code and autocomplete

I was doing some tests and it was weird that the autocomplete didn’t suggest the dimmed integers, it looks like, if the code was pasted into the editor, then the autocomplete is not filled with all the info until you edit the dim line. Look at the clip, maybe clearer than my explanation:

looks like as you type its not rebuilding the list of local variables which would give that issue

Thank you Norman, that’s exactly what is happening.

I can force a rebuild just by typing dim and delete it. But if I just put the local variable of If variable the autocomplete is not rebuilt. No biggie, I don’t normally paste code and knowing how to make it work again is enough for me. Just wanted to share.

I’d file a bug report as well if you havent

Done: <https://xojo.com/issue/55525>