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