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 c856e86 commit 9023167Copy full SHA for 9023167
compiler-core/src/language_server/code_action.rs
@@ -1444,14 +1444,7 @@ impl<'ast> ast::visit::Visit<'ast> for AnnotateTopLevelDefinitions<'_> {
1444
let mut printer = Printer::new_without_type_variables(&self.module.ast.names);
1445
collect_type_variables(&mut printer, fun);
1446
1447
- let code_action_range = self.edits.src_span_to_lsp_range(
1448
- fun.body_start
1449
- .map(|body_start| SrcSpan {
1450
- start: fun.location.start,
1451
- end: body_start,
1452
- })
1453
- .unwrap_or(fun.location),
1454
- );
+ let code_action_range = self.edits.src_span_to_lsp_range(fun.location);
1455
1456
if overlaps(code_action_range, self.params.range) {
1457
self.is_hovering_definition = true;
0 commit comments