diff --git a/crates/ide/src/runnables.rs b/crates/ide/src/runnables.rs index c1a068170b..b748d84ecc 100644 --- a/crates/ide/src/runnables.rs +++ b/crates/ide/src/runnables.rs @@ -74,7 +74,7 @@ impl Runnable { } } - pub fn debugee(&self) -> bool { + pub fn can_debug(&self) -> bool { matches!( &self.kind, RunnableKind::TestMod { .. } diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index 0e18581a31..f270d9de95 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs @@ -998,7 +998,7 @@ pub(crate) fn code_lens( let annotation_range = range(&line_index, annotation.range); let title = run.title(); - let can_debug = run.debugee(); + let can_debug = run.can_debug(); let r = runnable(snap, run)?; let lens_config = snap.config.lens();