do not truncate display for hover #4311

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
This commit is contained in:
Benjamin Coenen 2020-05-05 14:29:07 +02:00
parent 15de338703
commit 0bf02f5cca

View file

@ -208,7 +208,7 @@ pub(crate) fn hover(db: &RootDatabase, position: FilePosition) -> Option<RangeIn
} }
}?; }?;
res.extend(Some(rust_code_markup(&ty.display_truncated(db, None)))); res.extend(Some(rust_code_markup(&ty.display(db))));
let range = sema.original_range(&node).range; let range = sema.original_range(&node).range;
Some(RangeInfo::new(range, res)) Some(RangeInfo::new(range, res))
} }