Skip to content

Commit 102b7f0

Browse files
committed
Fix empty hover action group for a runnable.
1 parent 28077f9 commit 102b7f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust-analyzer/src/main_loop/handlers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ fn to_runnable_action(
11861186
runnable: Runnable,
11871187
) -> Option<lsp_ext::CommandLinkGroup> {
11881188
let cargo_spec = CargoTargetSpec::for_file(&snap, file_id).ok()?;
1189-
if should_skip_target(&runnable, cargo_spec.as_ref()) {
1189+
if !snap.config.hover.runnable() || should_skip_target(&runnable, cargo_spec.as_ref()) {
11901190
return None;
11911191
}
11921192

0 commit comments

Comments
 (0)