Skip to content

Copilot Rename Suggestions: No suggestions for identifiers referenced in methods that touch the end of file #74545

@AmadeusW

Description

@AmadeusW

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.
    image

Workaround:
Add newline at the end of file:
image

This issue was introduced with #73873
Please assign to me (if possible), I'll create a PR with fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEuntriagedIssues and PRs which have not yet been triaged by a lead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions