Finish #418

Implement suggestions from @rneatherway:
Avoid showing autocomplete when typing `.` when there is only whitespace in front of the dot.
Also, findLongIdentsAndResidue no longer returns an option, as it will always have a value.