mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-27 04:15:08 +00:00
Merge #753
753: assists: compute edit r=matklad a=kjeremy Fixes #751 Co-authored-by: kjeremy <kjeremy@gmail.com>
This commit is contained in:
commit
c1e10a24fa
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ pub fn assists<H>(db: &H, range: FileRange) -> Vec<(AssistLabel, AssistAction)>
|
||||||
where
|
where
|
||||||
H: HirDatabase + 'static,
|
H: HirDatabase + 'static,
|
||||||
{
|
{
|
||||||
AssistCtx::with_ctx(db, range, false, |ctx| {
|
AssistCtx::with_ctx(db, range, true, |ctx| {
|
||||||
all_assists()
|
all_assists()
|
||||||
.iter()
|
.iter()
|
||||||
.filter_map(|f| f(ctx.clone()))
|
.filter_map(|f| f(ctx.clone()))
|
||||||
|
|
Loading…
Reference in a new issue