Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

The "rename symbol" command doesn't work when only one symbol instance exists. This wastes the user's time. #482

Open
@WraithGlade

Description

@WraithGlade

For the Rust RLS plugin for Visual Code, the "rename symbol" command gives an error message if you try to rename a symbol (a.k.a. an identifier, variable name, function name, etc) when there is only one instance of that symbol in the file. It then proceeds to not rename that one instance, thereby wasting the user's time.

Having only a single instance of a symbol should definitely NOT be treated as an error case. Treating it that way is completely nonsensical. Instead, the system should rename the single symbol instance exactly as requested, instead of erroring out and forcing the user to rename the symbol again by hand.

Considering that it is generally wise to always rename symbols using the rename command instead of manually, this is a very annoying and commonly occurring bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions