**Version Used**: 17.12 main **Steps to Reproduce**: 1. Create a class whose ending bracket is the last character of the file (there is no newline at the end of file) 2. Attempt to get rename suggestions 3. Observe that nothing happens.  Workaround: Add newline at the end of file:  This issue was introduced with #73873 Please assign to me (if possible), I'll create a PR with fix