We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8661740 commit 2174acaCopy full SHA for 2174aca
crates/rust-analyzer/src/to_proto.rs
@@ -1164,7 +1164,7 @@ pub(crate) fn code_lens(
1164
let r = runnable(snap, run)?;
1165
1166
let lens_config = snap.config.lens();
1167
- if lens_config.run && client_commands_config.run_single {
+ if lens_config.run && client_commands_config.run_single && r.args.workspace_root.is_some() {
1168
let command = command::run_single(&r, &title);
1169
acc.push(lsp_types::CodeLens {
1170
range: annotation_range,
0 commit comments