From a9d567584857b1be4ca8eaa5ef2c7d85f7b2845e Mon Sep 17 00:00:00 2001 From: Mikhail Rakhmanov Date: Wed, 3 Jun 2020 20:10:33 +0200 Subject: Fix incorrect behaviour if not resolved --- crates/ra_assists/src/assist_context.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/ra_assists') diff --git a/crates/ra_assists/src/assist_context.rs b/crates/ra_assists/src/assist_context.rs index bc5481494..1925db8b2 100644 --- a/crates/ra_assists/src/assist_context.rs +++ b/crates/ra_assists/src/assist_context.rs @@ -179,6 +179,7 @@ impl Assists { f: impl FnOnce(&mut AssistDirector), ) -> Option<()> { if !self.resolve { + self.buf.push((label, None)); return None; } let mut director = AssistDirector::default(); -- cgit v1.2.3