implement a temporary workaround for #8058

This commit is contained in:
Josh Mcguigan 2021-03-21 17:30:56 -07:00
parent 858ad55437
commit 8cd94900f7
4 changed files with 37 additions and 7 deletions

View file

@ -148,8 +148,10 @@ impl<'a> Render<'a> {
..CompletionRelevance::default()
});
if let Some(ref_match) = compute_ref_match(self.ctx.completion, ty) {
item.ref_match(ref_match);
if let Some(_ref_match) = compute_ref_match(self.ctx.completion, ty) {
// FIXME
// For now we don't properly calculate the edits for ref match
// completions on struct fields, so we've disabled them. See #8058.
}
item.build()