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

Refactoring Rename strange behaviour #244

Open
@boozook

Description

@boozook

Rename works on saved buffer instead the current buffer, I think.

vsc-rls rename-issue mov opt

Steps to reproduce:

  • open any .rs in the vscode and paste following code:
  • let foo = ();
    println!("12345 {:?}", foo);
  • save
  • delete 12345
  • rename foo to xx
  • you'll get an unexpected result: foo);xx because you deleted 5 symbols and length of foo); is five too ;)

versions:

macOS: 10.12.6
vscode: 1.19.3 x64
rust-lang.rust: 0.3.2
rustup:
    default host: x86_64-apple-darwin
    toolchain: nightly-x86_64-apple-darwin
rls: rls-preview 0.124.0-nightly (299a6a9 2017-12-25)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions