Always render the path to be imported in the completion detail

This commit is contained in:
Lukas Wirth 2023-12-11 18:37:12 +01:00
parent 3aa6306728
commit 18591ae5c8
4 changed files with 31 additions and 51 deletions

View file

@ -181,7 +181,7 @@ fn import_edits(ctx: &CompletionContext<'_>, requires: &[GreenNode]) -> Option<V
ctx.config.prefer_no_std,
ctx.config.prefer_prelude,
)?;
Some((path.len() > 1).then(|| LocatedImport::new(path.clone(), item, item, None)))
Some((path.len() > 1).then(|| LocatedImport::new(path.clone(), item, item)))
};
let mut res = Vec::with_capacity(requires.len());
for import in requires {