This repository was archived by the owner on Nov 18, 2022. It is now read-only.
Refactoring Rename strange behaviour #244
Open
Description
Rename
works on saved buffer instead the current buffer, I think.
Steps to reproduce:
- open any
.rs
in the vscode and paste following code: -
let foo = (); println!("12345 {:?}", foo);
- save
- delete
12345
- rename
foo
toxx
- you'll get an unexpected result:
foo);xx
because you deleted 5 symbols and length offoo);
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)