From aa598ecb75331068f4cacd443512991bc48937dc Mon Sep 17 00:00:00 2001 From: kjeremy Date: Mon, 13 Jul 2020 17:41:47 -0400 Subject: Filter assists --- crates/ra_ide/src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide') diff --git a/crates/ra_ide/src/lib.rs b/crates/ra_ide/src/lib.rs index 6a4f5cb3d..c21f2a0b1 100644 --- a/crates/ra_ide/src/lib.rs +++ b/crates/ra_ide/src/lib.rs @@ -476,8 +476,9 @@ impl Analysis { &self, config: &AssistConfig, frange: FileRange, + allowed: Option>, ) -> Cancelable> { - self.with_db(|db| ra_assists::Assist::resolved(db, config, frange)) + self.with_db(|db| ra_assists::Assist::resolved(db, config, frange, allowed)) } /// Computes unresolved assists (aka code actions aka intentions) for the given @@ -486,8 +487,9 @@ impl Analysis { &self, config: &AssistConfig, frange: FileRange, + allowed: Option>, ) -> Cancelable> { - self.with_db(|db| Assist::unresolved(db, config, frange)) + self.with_db(|db| Assist::unresolved(db, config, frange, allowed)) } /// Computes the set of diagnostics for the given file. -- cgit v1.2.3