Skip to content

Commit 9995e79

Browse files
bors[bot]avrong
andauthored
Merge #5414
5414: Fix test code lens r=jonas-schievink a=avrong Closes #5217 The implementation is quite similar to #4821. Maybe we should somehow deal with duplicated code. Also, both of these requests introduce some unclear behavior. I'm not sure how to process this, therefore asking for advice. Examples are below. <img width="286" alt="image" src="https://user-images.githubusercontent.com/6342851/87713209-83595f80-c7b2-11ea-8c0f-a12e7571e7df.png"> Co-authored-by: Aleksei Trifonov <[email protected]>
2 parents 859963b + 85d5ed3 commit 9995e79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust-analyzer/src/handlers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ pub(crate) fn handle_code_lens(
892892
}
893893

894894
let action = runnable.action();
895-
let range = to_proto::range(&line_index, runnable.nav.focus_or_full_range());
895+
let range = to_proto::range(&line_index, runnable.nav.full_range);
896896
let r = to_proto::runnable(&snap, file_id, runnable)?;
897897
if snap.config.lens.run {
898898
let lens = CodeLens {

0 commit comments

Comments
 (0)