Writing LUA - code editor lookups - end - causes a different lookup

When typing end as one codes in LUA it brings up hero.commandableTypes etc instead of just allowing for the end syntax. If we allow auto complete to finish it will overwrite with code that is not what was intended.

I don’t know if this should be classified as a bug or a request for a new feature?