Skip to content

Commit

Permalink
Merge pull request rust-lang#283 from albel727/rangelength-take-two
Browse files Browse the repository at this point in the history
Alternative attempt to support rangeLength field in LSP
  • Loading branch information
nrc committed May 2, 2017
2 parents 8369992 + e61a3d0 commit 53fa8ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ racer = "2.0.6"
rls-analysis = "0.1"
rls-data = "0.1"
rls-span = { version = "0.1", features = ["serialize-serde"] }
rls-vfs = { version = "0.1", features = ["racer-impls"] }
rls-vfs = { version = "0.2", features = ["racer-impls"] }
rustfmt = { git = "https://github.com/rust-lang-nursery/rustfmt" }
serde = "0.9"
serde_json = "0.9"
Expand Down
1 change: 1 addition & 0 deletions src/actions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ impl ActionHandler {
let range = ls_util::range_to_rls(range);
Change::ReplaceText {
span: Span::from_range(range, fname.clone()),
len: i.range_length,
text: i.text.clone()
}
} else {
Expand Down

0 comments on commit 53fa8ca

Please sign in to comment.