aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src/lib.rs')
-rw-r--r--crates/ra_ide/src/lib.rs6
1 files changed, 4 insertions, 2 deletions
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 {
476 &self, 476 &self,
477 config: &AssistConfig, 477 config: &AssistConfig,
478 frange: FileRange, 478 frange: FileRange,
479 allowed: Option<Vec<AssistKind>>,
479 ) -> Cancelable<Vec<ResolvedAssist>> { 480 ) -> Cancelable<Vec<ResolvedAssist>> {
480 self.with_db(|db| ra_assists::Assist::resolved(db, config, frange)) 481 self.with_db(|db| ra_assists::Assist::resolved(db, config, frange, allowed))
481 } 482 }
482 483
483 /// Computes unresolved assists (aka code actions aka intentions) for the given 484 /// Computes unresolved assists (aka code actions aka intentions) for the given
@@ -486,8 +487,9 @@ impl Analysis {
486 &self, 487 &self,
487 config: &AssistConfig, 488 config: &AssistConfig,
488 frange: FileRange, 489 frange: FileRange,
490 allowed: Option<Vec<AssistKind>>,
489 ) -> Cancelable<Vec<Assist>> { 491 ) -> Cancelable<Vec<Assist>> {
490 self.with_db(|db| Assist::unresolved(db, config, frange)) 492 self.with_db(|db| Assist::unresolved(db, config, frange, allowed))
491 } 493 }
492 494
493 /// Computes the set of diagnostics for the given file. 495 /// Computes the set of diagnostics for the given file.