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

Commit e61a3d0

Browse files
author
user
committed
Switch to rls-vfs 2.0 and send it rangeLength from LSP
Fixes #280
1 parent 8369992 commit e61a3d0

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ racer = "2.0.6"
1313
rls-analysis = "0.1"
1414
rls-data = "0.1"
1515
rls-span = { version = "0.1", features = ["serialize-serde"] }
16-
rls-vfs = { version = "0.1", features = ["racer-impls"] }
16+
rls-vfs = { version = "0.2", features = ["racer-impls"] }
1717
rustfmt = { git = "https://github.com/rust-lang-nursery/rustfmt" }
1818
serde = "0.9"
1919
serde_json = "0.9"

src/actions/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ impl ActionHandler {
178178
let range = ls_util::range_to_rls(range);
179179
Change::ReplaceText {
180180
span: Span::from_range(range, fname.clone()),
181+
len: i.range_length,
181182
text: i.text.clone()
182183
}
183184
} else {

0 commit comments

Comments
 (0)