diff options
author | vsrs <[email protected]> | 2020-06-10 12:23:06 +0100 |
---|---|---|
committer | vsrs <[email protected]> | 2020-06-18 08:15:42 +0100 |
commit | 102b7f0f56258f115b3405f48c6ac20102e71606 (patch) | |
tree | f2c62b340679e6b9d1895b9651bce4e3143be5b7 /crates | |
parent | 28077f971a29ddb8dee947f4c9ab14119944f66f (diff) |
Fix empty hover action group for a runnable.
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/src/main_loop/handlers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/main_loop/handlers.rs b/crates/rust-analyzer/src/main_loop/handlers.rs index b34b529b5..f3868bf17 100644 --- a/crates/rust-analyzer/src/main_loop/handlers.rs +++ b/crates/rust-analyzer/src/main_loop/handlers.rs | |||
@@ -1186,7 +1186,7 @@ fn to_runnable_action( | |||
1186 | runnable: Runnable, | 1186 | runnable: Runnable, |
1187 | ) -> Option<lsp_ext::CommandLinkGroup> { | 1187 | ) -> Option<lsp_ext::CommandLinkGroup> { |
1188 | let cargo_spec = CargoTargetSpec::for_file(&snap, file_id).ok()?; | 1188 | 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()) { |
1190 | return None; | 1190 | return None; |
1191 | } | 1191 | } |
1192 | 1192 | ||