mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Merge #715
715: Use "▶" for test code lens r=matklad a=kjeremy I find that this makes code lenses stand out more otherwise they can be easy to miss. Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
This commit is contained in:
commit
1bf47d43db
1 changed files with 3 additions and 1 deletions
|
@ -618,7 +618,9 @@ pub fn handle_code_lens(
|
||||||
|
|
||||||
for runnable in world.analysis().runnables(file_id)? {
|
for runnable in world.analysis().runnables(file_id)? {
|
||||||
let title = match &runnable.kind {
|
let title = match &runnable.kind {
|
||||||
RunnableKind::Test { name: _ } | RunnableKind::TestMod { path: _ } => Some("Run Test"),
|
RunnableKind::Test { name: _ } | RunnableKind::TestMod { path: _ } => {
|
||||||
|
Some("▶️Run Test")
|
||||||
|
}
|
||||||
RunnableKind::Bench { name: _ } => Some("Run Bench"),
|
RunnableKind::Bench { name: _ } => Some("Run Bench"),
|
||||||
_ => None,
|
_ => None,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue